Skip to content Skip to sidebar Skip to footer

Create Geometry Shader Using Python Opengl (pyopengl) Failed

I want to create geometry_shader using glCreateShader(GL_GEOMETRY_SHADER), but I get error. Traceback (most recent call last): File 'test.py', line 9, in geome

Solution 1:

Verify that the GL_VERSION string of your context is actually what you're assuming it is.

Mesa generally only gives you an OpenGL 2.1 context unless you specifically ask for a versioned Core context, though more drivers are getting Compatibility context support as time goes on.

With GLFW you generally request GL versions via hints set before window creation, in particular you'll want to set values for GLFW_CONTEXT_VERSION_MAJOR, GLFW_CONTEXT_VERSION_MINOR, and GLFW_OPENGL_PROFILE.

Post a Comment for "Create Geometry Shader Using Python Opengl (pyopengl) Failed"