Fixed: Remove calls to glWindowPos which caused errors on some Intel chipsets.

This commit is contained in:
David Vierra 2012-11-24 13:21:28 -10:00
parent 73b835f685
commit e19c086a8d

View File

@ -232,8 +232,6 @@ class FramebufferTexture(Texture):
self.enabled = True
else:
GL.glReadBuffer(GL.GL_BACK)
if bool(window_pos.glWindowPos2dARB):
pixels = GL.glReadPixels(0, 0, width, height, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE)
GL.glPushAttrib(GL.GL_VIEWPORT_BIT | GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT | GL.GL_STENCIL_TEST | GL.GL_STENCIL_BUFFER_BIT)
GL.glDisable(GL.GL_STENCIL_TEST)
@ -247,10 +245,6 @@ class FramebufferTexture(Texture):
GL.glReadBuffer(GL.GL_BACK)
GL.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, width, height)
if bool(window_pos.glWindowPos2dARB):
window_pos.glWindowPos2dARB(0,0)
GL.glDrawPixels(width, height, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, pixels)
GL.glPopAttrib()