`
buerkai
  • 浏览: 166860 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

cocos2dx 2.0运行HelloWorld报错

 
阅读更多
cocos2dx  2.0运行HelloWorld在glGenVertexArrays(1, &m_uVAOname)时候报0x00000000错误解决办法:

在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
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics