all repos — mgba @ c21f9e81bb272fba1b341e8b7fe15e8a8e44ed56

mGBA Game Boy Advance Emulator

GBA Video: Fix typing mismatch in modes 3, 4 and 5 renderer (fixes #2047)
Vicki Pfau vi@endrift.com
Tue, 23 Feb 2021 22:12:56 -0800
commit

c21f9e81bb272fba1b341e8b7fe15e8a8e44ed56

parent

817e4d950f3689603d211d8a8b4ccb5d72ee40ca

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

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

@@ -309,10 +309,10 @@ " ivec2 mat[4];\n"

" ivec2 offset[4];\n" " vec2 incoord = texCoord;\n" " if (mosaic.x > 1) {\n" - " incoord.x = floor(MOSAIC(incoord.x, mosaic.x));\n" + " incoord.x = float(MOSAIC(incoord.x, mosaic.x));\n" " }\n" " if (mosaic.y > 1) {\n" - " incoord.y = floor(MOSAIC(incoord.y, mosaic.y));\n" + " incoord.y = float(MOSAIC(incoord.y, mosaic.y));\n" " }\n" " loadAffine(int(incoord.y), mat, offset);\n" " float y = fract(incoord.y);\n"

@@ -370,10 +370,10 @@ " ivec2 mat[4];\n"

" ivec2 offset[4];\n" " vec2 incoord = texCoord;\n" " if (mosaic.x > 1) {\n" - " incoord.x = floor(MOSAIC(incoord.x, mosaic.x));\n" + " incoord.x = float(MOSAIC(incoord.x, mosaic.x));\n" " }\n" " if (mosaic.y > 1) {\n" - " incoord.y = floor(MOSAIC(incoord.y, mosaic.y));\n" + " incoord.y = float(MOSAIC(incoord.y, mosaic.y));\n" " }\n" " loadAffine(int(incoord.y), mat, offset);\n" " float y = fract(incoord.y);\n"