Re: [PyOpenGL-Users] How to use shaders in pyopengl
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-09-12 03:54:24
|
Mike C. Fletcher wrote: > Dirk Reiners wrote: > >> Hi Mike, >> >> any news on the Windows shader problem? has anybody else been able to reproduce it? >> >> > Not yet. I've been able to use extensions on my XP laptop, but it > doesn't have shader support. My Win2K machine (which has a reasonable > video card) spent the entire time I was intending to work on it just > getting updated and cleaned up so it would run properly. > > Take care, > Mike > I found the bug. Basically there was a wrapper for glShaderSource/glShaderSourceARB which was not passing in the "extension" parameter which was being used to decide whether the function should be available. Previously we would just try to get the function and check for a NULL pointer, but the Mesa implementation decided to start returning non-null pointers that just print out warning messages when you try to call a non-existent function, so we started checking for the extensions. Unfortunately, the wrapper didn't get updated, so the test was always coming up false. Anyway, with current CVS shaders should work on Win32. I'll likely be doing some further refactoring of the base platform module to clean it up and see if I can discover the problem on OSX tomorrow. Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |