tests/shader_1.py error C7533 deprecated call to gl_Model
Brought to you by:
mcfletch
When attempting to run tests/shader_1.py, I get the following error:
RuntimeError: ('Shader compile failure (0): 0(3) : error C7533: global variable gl_ModelViewProjectionMatrix is deprecated after version 120\n0(3) : error C7533: global variable gl_Vertex is deprecated after version 120\n', ['#version 330\n void main() {\n gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n }'], GL_VERTEX_SHADER)
If I change the #version to 120, I get this:
NameError: name 'GL_UNIFORM_BUFFER' is not defined
The GL_UNIFORM_BUFFER not defined error is because it's only available in current bzr head PyOpenGL. The version was changed because of reports that certain machines were unable to compile without a 330 declaration; 120 is apparently the last version that "supports" the fixed pipeline.