Re: test context with opengl 3.3 context, for shader_instanced example?
"Mike C. Fletcher" <[email protected]> Wed, 12 Aug 2015 14:27:18 -0400
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
On 15-07-31 01:17 PM, Stuart Axon wrote:
> Hi,
> I've been trying to get the shader_instanced example at
> http://pyopengl.sourceforge.net/context/tutorials/shader_instanced.html working,
> but having some trouble.
>
> I've been using the fixed version from here
> http://stackoverflow.com/questions/16945500/why-is-this-tutorial-example-of-a-shader-not-displaying-any-geometry-as-it-is-su
>
> But get this error
>
> RuntimeError: ('Shader compile failure (0): 0:1(10): error: GLSL 3.30
> is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES,
> and 3.00 ES\n', ['#version 330\n void main()
> {\n gl_Position = gl_ModelViewProjectionMatrix *
> gl_Vertex;\n }'], GL_VERTEX_SHADER)
>
> Is it possible to make the testcontext be OpenGL 3.3, glxinfo tells me:
Not sure if that demo actually *requires* GLSL version 3.3, or whether
it just declares that because it's what my machine has. Your driver
apparently would give you 3.3 if it were a core context (I haven't seen
that before), but only 1.3 for compat context. OpenGLContext is rather
old, so it doesn't have support for core profile contexts. That said,
you could likely take a core-profile demo, copy the shaders over to it,
and run the result.
Good luck,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
------------------------------------------------------------------------------
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net