Thread: [PyOpenGL-Users] Extension problems
Brought to you by:
mcfletch
From: J. A. <ja...@ca...> - 2007-01-26 17:38:15
|
Python 2.4.4, PyOpenGL-3.0.0a5 and a4. glGetString(GL_EXTENSIONS) seems to be returning none. I have no idea why. Has anybody any idea what could be causing this? I tried running an extension viewer, and it can find them find, however PyOpenGL doesn't seem to be able to find any. I've not used extensions before so there is a chance I could be doing something moronic, however I'm not sure. I used the python code fot the NeHe lesson 41 (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=41) which I would imagine is meant to work, and after a bit of backtracking found that PyOpenGL was trying to split the NoneType object returned from glGetString(GL_EXTENSIONS). Any ideas? Jeremy Appleyard |
From: Mike C. F. <mcf...@vr...> - 2007-01-26 19:45:18
|
J. Appleyard wrote: > Python 2.4.4, PyOpenGL-3.0.0a5 and a4. > > glGetString(GL_EXTENSIONS) seems to be returning none. I have no idea why. > Has anybody any idea what could be causing this? I tried running an > extension viewer, and it can find them find, however PyOpenGL doesn't seem > to be able to find any. > You are most likely calling the function before you have a valid rendering context. At least on my machine that returns None. Calling with an active context should return the set of extensions. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |