picogl.ui.backend.glut.prefer_glx
Prefer GLX over EGL for PyOpenGL on Linux.
Under Wayland, PyOpenGL often selects the EGL platform. freeglut still creates
GLX contexts, so GetCurrentContext() returns 0 and glutDisplayFunc raises:
Attempt to retrieve context when no valid context
Set PYOPENGL_PLATFORM=glx before importing OpenGL.
Import this module before import OpenGL / OpenGL.GLUT.
Attributes
Functions
|
Force PyOpenGL onto the GLX platform on Linux when unset. |