all repos — mgba @ ff8f03ab74c20ce387dbbd20a57c317dfd225ab5

mGBA Game Boy Advance Emulator

GBA Video: Fix 512x512 backgrounds in GL
Vicki Pfau vi@endrift.com
Thu, 06 Jun 2019 23:36:35 -0700
commit

ff8f03ab74c20ce387dbbd20a57c317dfd225ab5

parent

ace3bd57f7274db5544a8714b136287622d4ade9

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

jump to
M src/gba/renderers/gl.csrc/gba/renderers/gl.c

@@ -155,7 +155,7 @@ " }\n"

" if ((size & 1) == 1) {\n" " coord.y += coord.x & 256;\n" " }\n" - " coord &= ivec2(255, 511);\n" + " coord &= ivec2(255, 1023);\n" " int mapAddress = screenBase + (coord.x >> 3) + (coord.y >> 3) * 32;\n" " vec4 map = texelFetch(vram, ivec2(mapAddress & 255, mapAddress >> 8), 0);\n" " int tileFlags = int(map.g * 15.9);\n"