Cocos2dx 2.0 run helloworld in glgenvertexarrays (1, & m_uvaoname) and report 0 × 00000000 error solution:

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.