Permalink
Browse files

DS GX: Fix T-repeat textures (fixes #577)

  • Loading branch information...
endrift committed Apr 10, 2017
1 parent 3f71924 commit 9676ea17a83d97bed55586cbd396afe03b55c3d8
Showing with 2 additions and 1 deletion.
  1. +1 −0 CHANGES
  2. +1 −1 src/ds/gx/software.c
View
@@ -2,6 +2,7 @@ medusa alpha 2: (Future)
Bugfixes:
- DS Video: Fix VRAM mirroring in the renderer (fixes mgba.io/i/561)
- DS Video: Fix extended modes 1.x screen base range (fixes mgba.io/i/568)
+ - DS GX: Fix T-repeat textures (fixes mgba.io/i/577)
Misc:
- DS: Set boot complete bit in RAM on boot (fixes mgba.io/i/576, mgba.io/i/580, mgba.io/i/586)
View
@@ -122,7 +122,7 @@ static color_t _lookupColor(struct DSGXSoftwareRenderer* renderer, struct DSGXSo
if (t < 0) {
t = 0;
} else if (t >= poly->texH) {
- t = poly->texW - 1;
+ t = poly->texH - 1;
}
} else if (DSGXTexParamsIsTMirror(poly->texParams)) {
if (t & poly->texH) {

0 comments on commit 9676ea1

Please sign in to comment.