DS GX: Fix large textures wrapping

This commit is contained in:
Vicki Pfau 2017-04-26 00:47:49 -07:00
parent f32fbd737f
commit cbc805b194
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Bugfixes:
- DS GX: Retain translucent polygon ID when drawing opaque fragments (fixes mgba.io/i/661)
- DS Timers: Fix ARM9 timers running too fast
- DS GX: Fix DMAs triggering too frequently (fixes mgba.io/i/620, mgba.io/i/583)
- DS GX: Fix large textures wrapping
Misc:
- DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586)
- DS Memory: Ensure DS9 I/O is 8-byte aligned

View File

@ -133,7 +133,7 @@ static color_t _lookupColor(struct DSGXSoftwareRenderer* renderer, struct DSGXSo
t &= poly->texH - 1;
}
uint16_t texelCoord = s + t * poly->texW;
unsigned texelCoord = s + t * poly->texW;
uint8_t ta = 0x1F;
uint8_t pa = DSGXPolygonAttrsGetAlpha(poly->polyParams);
if (pa) {