]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_screen.c
combined glClear calls, may be a speedup
[xonotic/darkplaces.git] / gl_screen.c
index e2a35ffacace7d13ef0b2f5260fc7b8354e1f65c..a5e7d733b5caaf0337e5c6a7c7d66dcdc53280bb 100644 (file)
@@ -902,7 +902,7 @@ void SCR_UpdateScreen (void)
                SCR_CalcRefdef ();
 
        glClearColor(0,0,0,0);
-       glClear (GL_COLOR_BUFFER_BIT); // LordHavoc: clear the screen (around the view as well)
+       glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); // LordHavoc: clear the screen (around the view as well)
 
 //
 // do 3D refresh drawing, and then update the screen