mirror of https://github.com/axmolengine/axmol.git
[Win32] disable CCTextureAtlas use VAO, some windows display adapter driver cannot support VAO
This commit is contained in:
parent
ded6e3edcf
commit
cf5f3dedc7
|
@ -165,9 +165,10 @@ Only valid for cocos2d-mac. Not supported on cocos2d-ios.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
#ifndef CC_TEXTURE_ATLAS_USE_VAO
|
#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
|
#define CC_TEXTURE_ATLAS_USE_VAO 1
|
||||||
#else
|
#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. */
|
/* Some android devices cannot support VAO very well, so we disable it by default for android platform. */
|
||||||
/* Blackberry also doesn't support this feature. */
|
/* Blackberry also doesn't support this feature. */
|
||||||
#define CC_TEXTURE_ATLAS_USE_VAO 0
|
#define CC_TEXTURE_ATLAS_USE_VAO 0
|
||||||
|
|
Loading…
Reference in New Issue