Python GlgenTexture中的pyopengl错误
我有一个问题:Python GlgenTexture中的pyopengl错误,python,opengl,segmentation-fault,Python,Opengl,Segmentation Fault,我有一个问题: Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from OpenGL.GL import * >>> glGenTextures <OpenGL.lazywrapper.glGenTexture
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from OpenGL.GL import *
>>> glGenTextures
<OpenGL.lazywrapper.glGenTextures object at 0x9d3b18c>
>>> glGenTextures(1)
Segmentation fault
Python 2.6.5(r265:79063,2010年4月16日,13:09:56)
[GCC 4.4.3]关于linux2
有关详细信息,请键入“帮助”、“版权”、“信用证”或“许可证”。
>>>从OpenGL.GL导入*
>>>玻璃纤维织物
>>>玻璃纤维织物(1)
分段故障
我在Ubuntu 10.04 LTS上
可能是什么?在哪里可以找到其他信息?在调用任何OpenGL函数之前,应该先激活上下文。另外,
glGenTextures
需要两个参数,因此pyopengl不会直接调用它。您必须查看pyopengl源代码,才能确切地了解出了什么问题,但首先创建上下文肯定是解决方案的一部分