diff --git a/libs/video/renderer/gl/gl_draw.c b/libs/video/renderer/gl/gl_draw.c index a6836c4aa..d22ef1fed 100644 --- a/libs/video/renderer/gl/gl_draw.c +++ b/libs/video/renderer/gl/gl_draw.c @@ -970,7 +970,7 @@ set_2d (int width, int height) qfglMatrixMode (GL_PROJECTION); qfglLoadIdentity (); - qfglOrtho (0, width, height, 0, -99999, 99999); + qfglOrtho (-0.5, width - 0.5, height - 0.5, -0.5, -99999, 99999); qfglMatrixMode (GL_MODELVIEW); qfglLoadIdentity (); diff --git a/libs/video/renderer/glsl/glsl_draw.c b/libs/video/renderer/glsl/glsl_draw.c index 7fb50c965..f9bc2504b 100644 --- a/libs/video/renderer/glsl/glsl_draw.c +++ b/libs/video/renderer/glsl/glsl_draw.c @@ -799,7 +799,8 @@ set_2d (int width, int height) qfeglDisable (GL_DEPTH_TEST); qfeglDisable (GL_CULL_FACE); - ortho_mat (proj_matrix, 0, width, height, 0, -99999, 99999); + ortho_mat (proj_matrix, -0.5, width - 0.5, height - 0.5, -0.5, + -99999, 99999); qfeglUseProgram (quake_2d.program); qfeglEnableVertexAttribArray (quake_2d.vertex.location);