all repos — mgba @ be1c1445138b41da6cb4d79ed8e100c1c41bfe42

mGBA Game Boy Advance Emulator

DS GX: Fix A*I* textures being transparent when I is 0
Vicki Pfau vi@endrift.com
Mon, 13 Mar 2017 15:25:06 -0700
commit

be1c1445138b41da6cb4d79ed8e100c1c41bfe42

parent

77f74a831f0616f37f27c4675d259a7471a85d55

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

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

@@ -228,7 +228,7 @@ if (b) {

texel = _mixTexels(a, texel, b, texel2); } } else { - if (DSGXTexParamsIs0Transparent(poly->poly->texParams) && !texel) { + if (poly->texFormat < 5 && poly->texFormat > 1 && DSGXTexParamsIs0Transparent(poly->poly->texParams) && !texel) { return 0; } texel = poly->palBase[texel];