mirror of https://github.com/axmolengine/axmol.git
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:
parent
227b357241
commit
d1c76886ec
|
@ -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.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue