您的位置:首页 > 其它

glGenVertexArrays 崩溃的处理方式

2015-11-05 11:26 411 查看
在运行红宝书8版的源码的时候,遇到glGenVertexArrays调用时崩溃的问题。解决方式是在glewInit()前加入glewExperimental = GL_TRUE;

要用这句代码来开启glew对扩展的支持

GLEW obtains information on the supported extensions from the graphics driver. Experimental or
pre-release drivers, however, might not report every available extension through the standard mechanism, in which case GLEW will report it unsupported. To circumvent this situation, the
glewExperimental
global
switch can be turned on by setting it to
GL_TRUE
before
calling
glewInit()
,
which ensures that all extensions with valid entry points will be exposed.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: