Permalink
Browse files

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

…chipsets.
  • Loading branch information...
1 parent 73b835f commit e19c086a8da81def96a7b3ead1b883d7625d9999 @codewarrior0 codewarrior0 committed Nov 24, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 glutils.py
View
6 glutils.py
@@ -232,8 +232,6 @@ def __init__(self, width, height, drawFunc):
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 @@ def __init__(self, width, height, drawFunc):
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()

0 comments on commit e19c086

Please sign in to comment.