]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_draw.c
added polygonoffset as a texture property, used on submodels (such as
[xonotic/darkplaces.git] / gl_draw.c
index 251009ef0ef141c3841d287f32f543e63579fb32..2f4367c1c3fdd07f43f29e0757a16a6f7060ed39 100644 (file)
--- a/gl_draw.c
+++ b/gl_draw.c
@@ -550,6 +550,7 @@ static void _DrawQ_Setup(void)
 
        GL_DepthMask(true);
        GL_DepthRange(0, 1);
+       GL_PolygonOffset(0, 0);
        GL_DepthTest(false);
        GL_Color(1,1,1,1);
        GL_AlphaTest(false);
@@ -945,6 +946,7 @@ void R_DrawGamma(void)
                R_Mesh_ResetTextureState();
                GL_DepthMask(true);
                GL_DepthRange(0, 1);
+               GL_PolygonOffset(0, 0);
                GL_DepthTest(false);
                if (v_color_enable.integer)
                {