[PyOpenGL-Users] No valid context
Brought to you by:
mcfletch
From: physkets <phy...@tu...> - 2020-04-19 14:20:21
|
Hi! I'm trying to use pyGLFW to make a simple coloured quad, but I fail with the following error message: Traceback (most recent call last): File "first.py", line 121, in <module> gl.glVertexAttribPointer(LOCATION, 2, gl.GL_FLOAT, False, STRIDE, OFFSET) File "/usr/lib/python3.8/site-packages/OpenGL/latebind.py", line 63, in __call__ return self.wrapperFunction( self.baseFunction, *args, **named ) File "/usr/lib/python3.8/site-packages/OpenGL/GL/VERSION/GL_2_0.py", line 469, in glVertexAttribPointer contextdata.setValue( key, array ) File "/usr/lib/python3.8/site-packages/OpenGL/contextdata.py", line 58, in setValue context = getContext( context ) File "/usr/lib/python3.8/site-packages/OpenGL/contextdata.py", line 40, in getContext raise error.Error(OpenGL.error.Error: Attempt to retrieve context when no valid context I am attaching the program that gives me that error along with the shaders. Am I doing something wrong? This is information from glxinfo: OpenGL vendor string: Intel OpenGL renderer string: Mesa Intel(R) HD Graphics 620 (KBL GT2) OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.4 OpenGL core profile shading language version string: 4.60 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.4 OpenGL shading language version string: 4.60 OpenGL context flags: (none) OpenGL profile mask: compatibility profile OpenGL extensions: OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.4 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 OpenGL ES profile extensions: Also, I'm on a Wayland-based compositor, and am using GLFW compiled for wayland. Might that be an issue? |