Re: shader error handling rely on glGetObjectParameterivARB which is not in core profile

"Mike C. Fletcher" <[email protected]> Wed, 19 Feb 2014 09:40:44 -0500
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 02/18/2014 04:46 PM, rndblnch wrote:
> hello again, last report for tonight...
>
> i am still testing core profile, and yet another corner case:
> OpenGL.GL.shaders.glCompileShader is imported from ARB.shader_objects
> extension and its error handling relies on glGetObjectParameterivARB ..
> which is not present in core profile.
> this leads to trouble when trying to report compilation errors:
This was due to being a bit lazy in wrapping the 2.0 version, I used 
precisely the same code as in the ARB extension, and in doing so made 
the core code depend on the ARB version of the functionality. bzr head 
*should* now fix this, though as the code actually worked on my machine 
I can't be sure the problem is actually fixed on true core-only 
profiles.  BTW, your script there works fine on GLSL 1.3, which is what 
Intel integrated graphics provides these days (at least on Linux).

Thanks,
Mike


-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net