Re: glGenVertexArrays producing 'invalid enumerant' error.

Gordon Wrigley <[email protected]>
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAD-wiX3D+NVSm2q-Mem8hmtoB3AodJk31vY0e4BHcogqcZLEAg@mail.gmail.com>
Enabling error checking did not change that particular failure.

Are you suggesting that that machine may not have glBindVertexArray? That's
a core function and the driver reports itself as 3.3.0 via glxinfo and lets
me acquire a core 3.3 context via pyopengl glut.

G

On Thu, Nov 10, 2011 at 1:44 PM, Mike C. Fletcher <[email protected]>wrote:

> 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
_______________________________________________
PyOpenGL-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-users
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.