diff pytouhou/ui/gamerenderer.pyx @ 427:0604f4fbbe3c

Move the depth buffer clear outside of scissor, as per apitrace’s advice.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 03 Aug 2013 15:48:51 +0200
parents f4d76d3d6f2a
children 878273a984c4
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pyx
+++ b/pytouhou/ui/gamerenderer.pyx
@@ -17,7 +17,7 @@ from itertools import chain
 
 from pytouhou.lib.opengl cimport \
          (glClear, glMatrixMode, glLoadIdentity, glLoadMatrixf, glDisable,
-          glEnable, glFogi, glFogf, glFogfv, GL_DEPTH_BUFFER_BIT,
+          glEnable, glFogi, glFogf, glFogfv,
           GL_PROJECTION, GL_MODELVIEW, GL_FOG, GL_FOG_MODE, GL_LINEAR,
           GL_FOG_START, GL_FOG_END, GL_FOG_COLOR, GL_COLOR_BUFFER_BIT, GLfloat)
 
@@ -36,8 +36,6 @@ class GameRenderer(Renderer):
     def render(self):
         cdef float* fog_data
 
-        glClear(GL_DEPTH_BUFFER_BIT)
-
         back = self.background
         game = self.game