diff --git a/CHANGES b/CHANGES index 041e24271..18b108144 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/ds/gx/software.c b/src/ds/gx/software.c index 9730f8f63..d8d9103d5 100644 --- a/src/ds/gx/software.c +++ b/src/ds/gx/software.c @@ -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) {