Re: [PyOpenGL-Users] shader error handling rely on glGetObjectParameterivARB which is not in core p
Brought to you by:
mcfletch
From: rndblnch <rnd...@gm...> - 2014-02-21 09:48:29
|
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 > |