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
switch can be turned on by setting it to
calling
which ensures that all extensions with valid entry points will be exposed.
要用这句代码来开启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
glewExperimentalglobal
switch can be turned on by setting it to
GL_TRUEbefore
calling
glewInit(),
which ensures that all extensions with valid entry points will be exposed.
相关文章推荐
- 安卓fragment内部注册监听broadcastreceiver
- Linux测量kernel子模块加载时间的方法
- ASP.NET MVC 4中如何为不同的浏览器自适应布局和视图
- java-Druid连接池简单配置
- 【转载】trash-cli使用说明
- iOS -- 注释规范附统一代码块
- 《大道至简》第六章读后感
- Scrum Meeting 11.05
- linx命令笔记
- <iOS>swift中全局数据访问定义
- Java代码性能优化
- 创建GitHub技术博客全攻略
- 解决https请求下发送http请求问题
- android 打开google 帐户登陆页面
- innodb锁之间的兼容性判断
- Bazinga
- 如何使用xib来自定义控件
- 店家转战电商平台
- ibatis实现Iterate的使用
- spring mvc 接收手机端传输到web端的图片问题!