Enable texture cache on Emscripten. Not sure yet if this is the best balance, since we're both short on memory *and* compute time.

This commit is contained in:
James Gregory 2013-04-29 20:53:38 -07:00
parent 227b357241
commit d1c76886ec
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ It's new in cocos2d-x since v0.99.5
#define CC_ENABLE_CACHE_TEXTURE_DATA 0 #define CC_ENABLE_CACHE_TEXTURE_DATA 0
#endif #endif
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) #if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_EMSCRIPTEN)
/* Application will crash in glDrawElements function on some win32 computers and some android devices. /* Application will crash in glDrawElements function on some win32 computers and some android devices.
Indices should be bound again while drawing to avoid this bug. Indices should be bound again while drawing to avoid this bug.
*/ */