Fix off-by-one scanline
Jeffrey Pfau jeffrey@endrift.com
Tue, 07 May 2013 22:22:35 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/renderers/video-glsl.c
→
src/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);", "}" };