cocos2dx 2.0运行HelloWorld在glGenVertexArrays(1, &m_uVAOname)时候报0×00000000错误解决办法:
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