all repos — mgba @ 0cf9bf75e28e632ca071bb59a15e4f1afa4b4b9c

mGBA Game Boy Advance Emulator

DS GX: Increase max vertices on ngons to 10
Vicki Pfau vi@endrift.com
Sun, 19 Mar 2017 13:34:59 -0700
commit

0cf9bf75e28e632ca071bb59a15e4f1afa4b4b9c

parent

a2788993148c2355903690bc2dda00e24fa60c4f

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M include/mgba/internal/ds/gx.hinclude/mgba/internal/ds/gx.h

@@ -131,7 +131,7 @@ uint32_t polyParams;

DSGXTexParams texParams; uint32_t palBase; int verts; - unsigned vertIds[8]; + unsigned vertIds[10]; }; struct DSGXRenderer {
M src/ds/gx.csrc/ds/gx.c

@@ -260,7 +260,7 @@ }

static bool _clipPolygon(struct DSGX* gx, struct DSGXPolygon* poly) { int nOffscreen = 0; - int offscreenVerts[8] = { 0, 0, 0, 0 }; + int offscreenVerts[10] = { 0, 0, 0, 0 }; unsigned oldVerts[4]; int v;

@@ -326,9 +326,9 @@ }

return true; } - struct DSGXVertex inList[8]; - struct DSGXVertex outList[8]; - int outOffscreenVerts[8] = { 0, 0, 0, 0 }; + struct DSGXVertex inList[10]; + struct DSGXVertex outList[10]; + int outOffscreenVerts[10] = { 0, 0, 0, 0 }; for (v = 0; v < poly->verts; ++v) { inList[v] = gx->pendingVertices[oldVerts[v]]; }