cocos2dx 2.0运行HelloWorld在glGenVertexArrays(1, &m_uVAOname)时候报0×00000000错误解决办法:

来源:互联网 发布:校园招聘 云计算 编辑:程序博客网 时间:2024/06/08 05:03

cocos2dx 2.0运行HelloWorld在glGenVertexArrays(1, &m_uVAOname)时候报0×00000000错误解决办法:

Posted by 小糊涂|cnsoft on Aug 6, 2012 in AskGoogle/搜索, IphoneDev/爱风开发 |
Subscribe

cocos2dx 2.0运行HelloWorld在glGenVertexArrays(1, &m_uVAOname)时候报0×00000000错误解决办法:

在ccConfig.h中找打CC_TEXTURE_ATLAS_USE_VAO修改成如下

#ifndef CC_TEXTURE_ATLAS_USE_VAO
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS )
#define CC_TEXTURE_ATLAS_USE_VAO 1
#elif ((CC_TARGET_PLATFORM == CC_PLATFORM_WIN32))
/*my computor not support*/
#define CC_TEXTURE_ATLAS_USE_VAO 0
#else
/* Some android devices cannot support VAO very well, so we disable it by default for android platform. */
#define CC_TEXTURE_ATLAS_USE_VAO 0
#endif
#endif

原创粉丝点击