all repos — mgba @ 8047ce11d006ba4a51d055ce78f03807f66e5329

mGBA Game Boy Advance Emulator

Fix off-by-one scanline
Jeffrey Pfau jeffrey@endrift.com
Tue, 07 May 2013 22:22:35 -0700
commit

8047ce11d006ba4a51d055ce78f03807f66e5329

parent

5b5251434f0cf38f02440e18f7ac33dfd8df44f3

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

jump to
M src/gba/renderers/video-glsl.csrc/gba/renderers/video-glsl.c

@@ -105,7 +105,7 @@ "uniform float y;",

"void main() {", " x = vert.x * 120.0 + 120.0;", - " gl_Position = vec4(vert.x, 1.0 - y / 80.0, 0, 1.0);", + " gl_Position = vec4(vert.x, 1.0 - (y + 1.0) / 80.0, 0, 1.0);", "}" };