[PyOpenGL-Devel] _NULL_8_BYTE not defined with GLES2
Brought to you by:
mcfletch
|
From: Steven S. <sc...@ug...> - 2014-12-23 03:02:10
|
I'm running into the following error (Python 3.4.2, PyOpenGL v3.1.0):
File
"/usr/local/lib/python3.4/dist-packages/OpenGL/GLES2/VERSION/GLES2_2_0.py",
line 370, in glGetAttribLocation
if name[-1] != _NULL_8_BYTE:
NameError: name '_NULL_8_BYTE' is not defined
Which seems straightforward enough -- it looks like
OpenGL/GLES2/VERSION/GLES2_2_0.py is missing an import. Adding the
following line sorts it out:
from OpenGL._bytes _NULL_8_BYTE
|