Re: [PyOpenGL-Users] OpenGL 3.2 and core profile compatibility
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2010-04-16 04:08:43
|
Lionel Data wrote: > Hi, > > this is my first post to this mailing list. I'm currently struggling > quite hard to have a fresh OpenGL 3.2 compliant mini-engine using > PyOpenGL. > > I wanted to use the vertex array objects provided by the core profile. > As far as I know, it shouldn't be an extension anymore, but I may be > mistaken. > Anyway, I found the actual functions in the > OpenGL.GL.ARB.vertex_array_object module. However, it seems that, > somewhere in PyOpenGL, the function glGetString(GL_EXTENSIONS) is > called. Since I created an OpenGL3.2 core context, and that the > GL_EXTENSIONS enum is now deprecated, I get an unexpected error 1280 > (bad enum), and my engine crashes. > > Is there something I am missing ? Just that the utility code that checks for extensions wasn't tested with a machine that can do legacy free. I've attempted to update the extension-checking functionality to provide a legacy-free implementation, but I don't have any machine with glGetStringi available (i.e. I don't have a 3.x capable card), so I can't actually test that it works. If you can test with bzr head, it would be helpful. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |