Cocos2dx 2.0 run helloworld in glgenvertexarrays (1, & m_uvaoname) and report 0 × 00000000 error solution:
Find cc_texture_atlas_use_vao in ccconfig. h and change it to the following:
#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 Computer 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
Computer
PS. Some computers do not support problems
Probably the following files are true:
VAO. dll
File Path: c: \ windows \ system32 \
In addition:
Crash in
Bool ccglprogram: initwithvertexshaderbytearray (const glchar * vshaderbytearray, const glchar * fshaderbytearray)
Function
This line of code
M_uprogram = glcreateprogram ();
Windows XP, vs2008 |
It may be that your host is old, and the OpenGL version is too low. Maybe you can update the graphics/card driver. If not, try to run it with 1.3. If it can be a machine problem.
Reference http://blog.donews.com/cnsoft/archive/2012/08/06/1583121.aspx
Http://www.cocos2d-x.org/issues/1229, etc.