Re: [PyOpenGL-Users] glGetUniformLocation causes segmentation faults
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2009-06-25 15:24:21
|
richard hawkins wrote: > Hello all, > > I am having some trouble with a simple test application. I am mixing > one of the nehe tutorials with the brick example from the OpenGL > orange book. > > Here is my problem, all calls to glGetUniformLocation result in a > segmentation fault. I removed all calls to glGetUniformLocation, and > played around with guessing the appropriate values. Doing this I was > able to get the shader to render correctly, but is not a good way to > do things. > Interesting, my machine bombs out (not a segfault, just an invalid operation) when trying to do glUseProgram. I'd suspect that something is failing during compilation and you just aren't retrieving a compilation error message to see the failure? Don't have time to track it down this morning (already late for meeting). (Tested on an Ubuntu 9.04 64-bit with AMD Radeon, btw). Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |