mirror of https://github.com/axmolengine/axmol.git
[Android] Usage changes: ccGLInvalidateStateCache --> GL::invalidateStateCache();
This commit is contained in:
parent
5dca03c061
commit
d345ac7f3f
|
@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -34,7 +34,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -33,7 +33,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -30,7 +30,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -31,7 +31,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
|
@ -32,7 +32,7 @@ void Java_org_cocos2dx_lib_Cocos2dxRenderer_nativeInit(JNIEnv* env, jobject thi
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ccGLInvalidateStateCache();
|
GL::invalidateStateCache();
|
||||||
ShaderCache::getInstance()->reloadDefaultShaders();
|
ShaderCache::getInstance()->reloadDefaultShaders();
|
||||||
DrawPrimitives::init();
|
DrawPrimitives::init();
|
||||||
TextureCache::reloadAllTextures();
|
TextureCache::reloadAllTextures();
|
||||||
|
|
Loading…
Reference in New Issue