mirror of https://github.com/mgba-emu/mgba.git
DS GX: Fix pixel gap on mirroring textures
This commit is contained in:
parent
f3311cc373
commit
09c46ca2c4
|
@ -105,7 +105,7 @@ static color_t _lookupColor(struct DSGXSoftwareRenderer* renderer, struct DSGXSo
|
|||
}
|
||||
} else if (DSGXTexParamsIsSMirror(poly->poly->texParams)) {
|
||||
if (s & poly->texW) {
|
||||
s = poly->texW - s;
|
||||
s = poly->texW - s - 1;
|
||||
}
|
||||
s &= poly->texW - 1;
|
||||
} else {
|
||||
|
@ -119,7 +119,7 @@ static color_t _lookupColor(struct DSGXSoftwareRenderer* renderer, struct DSGXSo
|
|||
}
|
||||
} else if (DSGXTexParamsIsTMirror(poly->poly->texParams)) {
|
||||
if (t & poly->texH) {
|
||||
t = poly->texH - t;
|
||||
t = poly->texH - t - 1;
|
||||
}
|
||||
t &= poly->texH - 1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue