Re: settingOpenGL.ERROR_CHECKING to False has strange consequence on function loading

"Mike C. Fletcher" <[email protected]> Fri, 21 Feb 2014 10:37:17 -0500
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 02/21/2014 10:23 AM, rndblnch wrote:
> === modified file 'OpenGL/extensions.py'
> --- OpenGL/extensions.py	2014-01-30 20:32:21 +0000
> +++ OpenGL/extensions.py	2014-02-21 15:21:36 +0000
> @@ -156,11 +156,13 @@
>           if not platform.PLATFORM.CurrentContextIsValid():
>               return False
>           from OpenGL.raw.GL._types import GLint
> -        from OpenGL.raw.GL.VERSION.GL_1_1 import glGetString
> +        from OpenGL.raw.GL.VERSION.GL_1_1 import glGetString, glGetError
>           from OpenGL.raw.GL.VERSION.GL_1_1 import GL_EXTENSIONS
>           from OpenGL import error
>           try:
>               extensions = glGetString( GL_EXTENSIONS )
> +            if glGetError():
> +                raise error.GLError()
>               if extensions:
>                   extensions = extensions.split()
>               else:

Patch is applied to bzr head and should appear in beta-2.

Thanks,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net