]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
added GL_DepthRange function and MATERIALFLAG_SHORTDEPTHRANGE (now used by viewmodels...
[xonotic/darkplaces.git] / gl_draw.c
index 17883ca217202990b505f020c816b613ea54f4a0..62649f5d0cba813928870c7477aa9bc0bcb060c8 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -549,6 +549,7 @@ static void _DrawQ_Setup(void)
        R_Mesh_Matrix(&identitymatrix);
 
        GL_DepthMask(true);
+       GL_DepthRange(0, 1);
        GL_DepthTest(false);
        GL_Color(1,1,1,1);
        GL_AlphaTest(false);
@@ -896,6 +897,7 @@ void R_DrawGamma(void)
                R_Mesh_ColorPointer(NULL, 0, 0);
                R_Mesh_ResetTextureState();
                GL_DepthMask(true);
+               GL_DepthRange(0, 1);
                GL_DepthTest(false);
                if (v_color_enable.integer)
                {