Re: [PyOpenGL-Users] glGetUniformLocation causes segmentation faults
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-07-06 04:00:40
|
Ian Mallett wrote: > On Sun, Jul 5, 2009 at 1:57 PM, Mike C. Fletcher > <mcf...@vr... <mailto:mcf...@vr...>> wrote: > > You don't have a valid OpenGL context at this point, without that many > of the newer GL implementations will return NULL pointers when you try > to get the pointer. Some will even silently return NULL values > (without > raising errors!) when there's no active context. That's all > reasonably > spec-compliant, but a bit of a PITA IMO. > > Thought it might be the context. Attached is a simple example that > crashes. > Ian Hmm, no problem over here (AMD64 Linux with fglrx ATI drivers (OpenGL 2.1)). You're sure your card supports an actual OpenGL 2.x driver, and doesn't just have extensions on top of a 1.x driver? Clueless is me, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |