texture listener was enabled only when the macro CC_ENABLE_CACHE_TEXTURE_DATA was enabled.

This commit is contained in:
James Chen 2013-12-31 11:02:01 +08:00
parent 973adc6b2f
commit 8145bf903e
3 changed files with 7 additions and 0 deletions

View File

@ -52,6 +52,9 @@ TextureAtlas::TextureAtlas()
,_dirty(false) ,_dirty(false)
,_texture(nullptr) ,_texture(nullptr)
,_quads(nullptr) ,_quads(nullptr)
#if CC_ENABLE_CACHE_TEXTURE_DATA
,_backToForegroundlistener(nullptr)
#endif
{} {}
TextureAtlas::~TextureAtlas() TextureAtlas::~TextureAtlas()

View File

@ -238,7 +238,9 @@ protected:
/** Quads that are going to be rendered */ /** Quads that are going to be rendered */
V3F_C4B_T2F_Quad* _quads; V3F_C4B_T2F_Quad* _quads;
#if CC_ENABLE_CACHE_TEXTURE_DATA
EventListenerCustom* _backToForegroundlistener; EventListenerCustom* _backToForegroundlistener;
#endif
}; };
// end of textures group // end of textures group

View File

@ -47,7 +47,9 @@ Renderer::Renderer()
,_lastCommand(0) ,_lastCommand(0)
,_numQuads(0) ,_numQuads(0)
,_glViewAssigned(false) ,_glViewAssigned(false)
#if CC_ENABLE_CACHE_TEXTURE_DATA
,_cacheTextureListener(nullptr) ,_cacheTextureListener(nullptr)
#endif
{ {
_commandGroupStack.push(DEFAULT_RENDER_QUEUE); _commandGroupStack.push(DEFAULT_RENDER_QUEUE);