glFramebufferTexture2D GL_INVALID_OPERATION error on android when go back from another activity.

The screen blinks when try to call startActivity() to open facebook or any other intents. After go back from the the new activity, “glFramebufferTexture2D GL_INVALID_OPERATION” errors occurs, CCRenderTexture objects can not work well any more.

v2.2.2

problem solved by

#define CC_ENABLE_CACHE_TEXTURE_DATA 1

=>

#define CC_ENABLE_CACHE_TEXTURE_DATA 0