temp. hack preventing evil out-of-bounds write

This commit is contained in:
StapleButter
2017-03-04 15:34:07 +01:00
parent f8770dc8fe
commit 8c7b7e2327
4 changed files with 11 additions and 5 deletions

View File

@ -47,6 +47,8 @@
// Z-buffering mode: val = ((Z * 0x800 * 0x1000) / W) + 0x7FFCFF
// W-buffering mode: val = W - 0x1FF
// TODO: confirm W, because it's weird
// ... nope, that shit above isn't right
// also, the formula for the clear depth on GBAtek appears to be wrong
namespace GPU3D