mirror of https://github.com/axmolengine/axmol.git
issue #2397: Shader::sharedShaderCache() --> Shader::getInstance().
This commit is contained in:
parent
2c1b26acf8
commit
1f8e852020
|
@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
|
@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
ccDrawInit();
|
ccDrawInit();
|
||||||
ccGLInvalidateStateCache();
|
ccGLInvalidateStateCache();
|
||||||
|
|
||||||
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
|
||||||
Director::getInstance()->setGLDefaultValues();
|
Director::getInstance()->setGLDefaultValues();
|
||||||
|
|
Loading…
Reference in New Issue