all repos — mgba @ c4d10ba2378b2e2412be1a3986ab5f12bf149bb7

mGBA Game Boy Advance Emulator

DS GX: Fix polygon attrs being overwritten
Vicki Pfau vi@endrift.com
Sun, 05 Mar 2017 12:27:38 -0800
commit

c4d10ba2378b2e2412be1a3986ab5f12bf149bb7

parent

e5e954774010776638002562ec57ae8d0e267a80

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/ds/gx.csrc/ds/gx.c

@@ -894,6 +894,7 @@ int16_t x = (xyz << 6) & 0xFFC0;

int16_t y = (xyz >> 4) & 0xFFC0; int16_t z = (xyz >> 14) & 0xFFC0; _emitVertex(gx, gx->currentVertex.x + (x >> 6), gx->currentVertex.y + (y >> 6), gx->currentVertex.z + (z >> 6)); + break; } case DS_GX_CMD_POLYGON_ATTR: gx->nextPoly.polyParams = entry.params[0];