[Win32] disable CCTextureAtlas use VAO, some windows display adapter driver cannot support VAO

This commit is contained in:
dualface 2012-09-17 17:58:21 +08:00
parent ded6e3edcf
commit cf5f3dedc7
1 changed files with 2 additions and 1 deletions

View File

@ -165,9 +165,10 @@ Only valid for cocos2d-mac. Not supported on cocos2d-ios.
*/
#ifndef CC_TEXTURE_ATLAS_USE_VAO
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)
#define CC_TEXTURE_ATLAS_USE_VAO 1
#else
/* Some Windows display adapter driver cannot support VAO. */
/* Some android devices cannot support VAO very well, so we disable it by default for android platform. */
/* Blackberry also doesn't support this feature. */
#define CC_TEXTURE_ATLAS_USE_VAO 0