我在使用英特尔HD 3000图形芯片组的Windows 8 64位笔记本电脑上发生PyOpenGL 3.0.2问题。到glGenBuffers(1)
任何呼叫(GL正确初始化后)崩溃:英特尔高清显卡3000上PyOpenGL访问冲突
File ".\sample.py", line 7, in init
buffer = glGenBuffers(1)
File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.__call__ (src\latebind.c:768)
File "wrapper.pyx", line 308, in OpenGL_accelerate.wrapper.Wrapper.__call__ (src\wrapper.c:5811)
File "C:\Python27\lib\site-packages\OpenGL\platform\baseplatform.py", line 379, in __call__
return self(*args, **named)
WindowsError: exception: access violation writing 0x00000000720CF630
完全相同的脚本可以在其他机器上。
我有最新版本的GPU驱动程序(15.28.12.64.2932),它支持OpenGL 3.1。
任何想法?
下面是示例脚本:
import sys
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
def init():
buffer = glGenBuffers(1)
glutInit(sys.argv)
glutInitWindowSize(600, 600)
glutCreateWindow("Sample")
init()
glutMainLoop()
[从Python调用OpenGL扩展]可能的副本(http://stackoverflow.com/questions/6423994/calling-opengl-extensions-from-python) – genpfault 2013-03-07 19:05:05
我不认为它是'glGenBuffers'在'OpenGL.GL。*',而不是'OpenGL.GL.ARB。*'。另外,我的系统上没有'OpenGL.GL.ARB.vertex_buffer_object'。 – 2013-03-08 10:32:05