Re: [PyOpenGL-Users] How to use shaders in pyopengl
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-11-09 18:33:10
|
Don Laursen wrote: > I'm having a similar problem with shaders in Windows. > ... > I've attached my program. The OpenGL code is in fft/map/viewer.py. Any > help would be appreciated. > One thing I note is that it appears you may be doing OpenGL calls potentially before you get a valid OpenGL context. On windows that can often wind up crashing and/or using the non-accelerated driver. On my Gentoo workstation I get an Invalid Operation GL exception when I try to run your code, the most likely cause for that would be an invalid context. You should likely run all of your OpenGL code in a display callback from wxPython. At the very least you should "set current" in order to force a given context to be active. PS, a few fixes in bzr head for the shader object log operations and the like, if you're using them. Good luck, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |