Re: glGenVertexArrays producing 'invalid enumerant' error.

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 11-11-08 10:38 PM, Gordon Wrigley wrote:
> On an impulse I tried broke.py on another linux machine I have access
> to that has Nvidia drivers on it, the result was the same but the
> details differed. Particularly problems 2, 3 & 4 were replaced by this:
>
> Traceback (most recent call last):
>   File "broke.py", line 145, in <module>
>     main(sys.argv)
>   File "broke.py", line 115, in main
>     glBindVertexArray(vao)
>   File
> "/usr/local/lib/python2.7/dist-packages/OpenGL/platform/baseplatform.py",
> line 371, in __call__
>     if self.load():
>   File
> "/usr/local/lib/python2.7/dist-packages/OpenGL/platform/baseplatform.py",
> line 351, in load
>     if not platform.PLATFORM.checkExtension( self.extension ):
>   File
> "/usr/local/lib/python2.7/dist-packages/OpenGL/platform/baseplatform.py",
> line 246, in checkExtension
>     result = extensions.hasGLExtension( name )
>   File "/usr/local/lib/python2.7/dist-packages/OpenGL/extensions.py",
> line 54, in hasGLExtension
>     AVAILABLE_GL_EXTENSIONS[:] = glGetString( GL_EXTENSIONS ).split()
> AttributeError: 'NoneType' object has no attribute 'split'
Hmm, without error checking that will return None if the entry point is
not provided by the context (i.e. a core/forward-compatible-only
context).  That definitely will break.

Thanks,
Mike

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


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.