mirror of https://github.com/mgba-emu/mgba.git
DS GX: Increase max vertices on ngons to 10
This commit is contained in:
parent
a278899314
commit
0cf9bf75e2
|
@ -131,7 +131,7 @@ struct DSGXPolygon {
|
||||||
DSGXTexParams texParams;
|
DSGXTexParams texParams;
|
||||||
uint32_t palBase;
|
uint32_t palBase;
|
||||||
int verts;
|
int verts;
|
||||||
unsigned vertIds[8];
|
unsigned vertIds[10];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct DSGXRenderer {
|
struct DSGXRenderer {
|
||||||
|
|
|
@ -260,7 +260,7 @@ static bool _lerpVertexZ(const struct DSGXVertex* v0, const struct DSGXVertex* v
|
||||||
|
|
||||||
static bool _clipPolygon(struct DSGX* gx, struct DSGXPolygon* poly) {
|
static bool _clipPolygon(struct DSGX* gx, struct DSGXPolygon* poly) {
|
||||||
int nOffscreen = 0;
|
int nOffscreen = 0;
|
||||||
int offscreenVerts[8] = { 0, 0, 0, 0 };
|
int offscreenVerts[10] = { 0, 0, 0, 0 };
|
||||||
unsigned oldVerts[4];
|
unsigned oldVerts[4];
|
||||||
int v;
|
int v;
|
||||||
|
|
||||||
|
@ -326,9 +326,9 @@ static bool _clipPolygon(struct DSGX* gx, struct DSGXPolygon* poly) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct DSGXVertex inList[8];
|
struct DSGXVertex inList[10];
|
||||||
struct DSGXVertex outList[8];
|
struct DSGXVertex outList[10];
|
||||||
int outOffscreenVerts[8] = { 0, 0, 0, 0 };
|
int outOffscreenVerts[10] = { 0, 0, 0, 0 };
|
||||||
for (v = 0; v < poly->verts; ++v) {
|
for (v = 0; v < poly->verts; ++v) {
|
||||||
inList[v] = gx->pendingVertices[oldVerts[v]];
|
inList[v] = gx->pendingVertices[oldVerts[v]];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue