issue #2397: Shader::sharedShaderCache() --> Shader::getInstance().

This commit is contained in:
James Chen 2013-07-12 13:40:01 +08:00
parent 2c1b26acf8
commit 1f8e852020
17 changed files with 17 additions and 17 deletions

View File

@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -37,7 +37,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -36,7 +36,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();

View File

@ -35,7 +35,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
ccDrawInit();
ccGLInvalidateStateCache();
ShaderCache::sharedShaderCache()->reloadDefaultShaders();
ShaderCache::getInstance()->reloadDefaultShaders();
TextureCache::reloadAllTextures();
NotificationCenter::sharedNotificationCenter()->postNotification(EVNET_COME_TO_FOREGROUND, NULL);
Director::getInstance()->setGLDefaultValues();