all repos — mgba @ edc88dc91e59d3becfc92334a1512d1259cbc5e9

mGBA Game Boy Advance Emulator

DS GX: Fix textureless polygons
Vicki Pfau vi@endrift.com
Sat, 18 Mar 2017 22:39:36 -0700
commit

edc88dc91e59d3becfc92334a1512d1259cbc5e9

parent

03d11c3d0cdb6b73e47dbab2790b5a2b4c7e9c6d

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

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

@@ -90,7 +90,7 @@ return c;

} static color_t _lookupColor(struct DSGXSoftwareRenderer* renderer, struct DSGXSoftwareEndpoint* ep, struct DSGXSoftwarePolygon* poly) { - if (!poly->texBase) { + if (!poly->texBase && poly->texFormat) { return 0; } // TODO: Optimize