all repos — mgba @ aaeef69d968f45352a8bfcdb1807da284a76fe89

mGBA Game Boy Advance Emulator

DS GX: Fix MTX_STORE/MTX_RESTORE
Vicki Pfau vi@endrift.com
Wed, 01 Mar 2017 23:22:14 -0800
commit

aaeef69d968f45352a8bfcdb1807da284a76fe89

parent

7cd72f3519e7b2e215bb0e80436d53d9c4ce2903

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

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

@@ -405,11 +405,11 @@ switch (gx->mtxMode) {

case 0: memcpy(&gx->projMatrixStack, &gx->projMatrix, sizeof(gx->projMatrixStack)); break; - case 1: - memcpy(&gx->posMatrixStack[offset], &gx->posMatrix, sizeof(gx->posMatrix)); - // Fall through case 2: memcpy(&gx->vecMatrixStack[offset], &gx->vecMatrix, sizeof(gx->vecMatrix)); + // Fall through + case 1: + memcpy(&gx->posMatrixStack[offset], &gx->posMatrix, sizeof(gx->posMatrix)); break; case 3: mLOG(DS_GX, STUB, "Unimplemented GX MTX_STORE mode");

@@ -424,11 +424,11 @@ switch (gx->mtxMode) {

case 0: memcpy(&gx->projMatrix, &gx->projMatrixStack, sizeof(gx->projMatrix)); break; - case 1: - memcpy(&gx->posMatrix, &gx->posMatrixStack[offset], sizeof(gx->posMatrix)); - // Fall through case 2: memcpy(&gx->vecMatrix, &gx->vecMatrixStack[offset], sizeof(gx->vecMatrix)); + // Fall through + case 1: + memcpy(&gx->posMatrix, &gx->posMatrixStack[offset], sizeof(gx->posMatrix)); break; case 3: mLOG(DS_GX, STUB, "Unimplemented GX MTX_RESTORE mode");