These steps resolved the rendering issue for me:
-
Set the environment variable:
setenv PYOPENGL_PLATFORM egl
-
Upgrade PyOpenGL and PyOpenGL_accelerate:
pip install --upgrade PyOpenGL PyOpenGL_accelerate
-
In demo.py, make sure to set the environment variable in code:
import os
os.environ['PYOPENGL_PLATFORM'] = 'egl'