diff --git a/src/video_display/gl.cpp b/src/video_display/gl.cpp index 3f4b99d34..d0e8c6ce1 100644 --- a/src/video_display/gl.cpp +++ b/src/video_display/gl.cpp @@ -210,7 +210,7 @@ void main(void) { // interpolate (0,1) texcoords to [0,719] int texcoordDenormX; - texcoordDenormX = int(gl_TexCoord[0].x * imageWidth - .4999); + texcoordDenormX = int(round(gl_TexCoord[0].x * imageWidth - .4999)); // 0 1 1 2 3 3 4 5 5 6 7 7 etc. int yOffset;