我在带有 Intel HD 3000 图形芯片组的 Windows 8 64 位笔记本电脑上遇到了 PyOpenGL 3.0.2 问题。任何调用glGenBuffers(1)
(在正确的 GL 初始化之后)都会崩溃:
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
完全相同的脚本适用于其他机器。
我有支持 OpenGL 3.1 的最新版本的 GPU 驱动程序 (15.28.12.64.2932)。
有任何想法吗?
这是示例脚本:
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()