[PyOpenGL-Users] Fwd: glGenVertexArrays producing 'invalid enumerant' error.
Brought to you by:
mcfletch
|
From: Gordon W. <go...@to...> - 2011-11-08 11:46:24
|
+list ---------- Forwarded message ---------- From: Gordon Wrigley <go...@to...> Date: Tue, Nov 8, 2011 at 10:45 PM Subject: Re: [PyOpenGL-Users] glGenVertexArrays producing 'invalid enumerant' error. To: "Mike C. Fletcher" <vrp...@gm...> I stripped my program right down to the bare minimum and condensed it into a single file, just 150 lines and 5 separate issues. The file as attached doesn't run for me. There are 5 if statements marked with XXX comments as you toggle each one another problem is resolved / worked around. After all 5 are toggled it runs and displays a single white triangle. In order those problems are: 1: enabling ERROR_CHECKING after importing OpenGL.GL causes glShaderSource to error with "Don't know how to convert parameter 3" 2: glGenVertexArrays is not wrapped 3: calling glGenVertexArrays through pyopengl causes a 1280 invalid enumerant 4: which moves to the following glBindVertexArray call when you call glGenVertexArrays through ctypes 5: glVertexAttribPointer will only accept a pointer for the last argument not the integer value you pass when using it with GL_ARRAY_BUFFER bound. I hope this aids in tracking down and resolving some of these problems. And I am by no means a GL expert so it wouldn't surprise me at all if one or more of these were my fault. G |