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

rndblnch <[email protected]> Fri, 21 Feb 2014 09:47:55 +0000 (UTC)
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
Mike C. Fletcher <mcfletch <at> vrplumber.com> writes:

> 
> 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. 

it works for me, thanks.

> BTW, your script there works fine on GLSL 1.3, which is what 
> Intel integrated graphics provides these days (at least on Linux).

on Mac OS X 10.9, when you request a core profile context, you get a OpenGL
4.1 and the shader compiler only accept glsl 150...
i will have to special case the shader version at runtime to be protable.

renaud

> 
> Thanks,
> Mike
> 





------------------------------------------------------------------------------
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