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
1 files changed,
4 insertions(+),
4 deletions(-)
jump to
M
src/gba/renderers/gl.c
→
src/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"