mirror of https://github.com/axmolengine/axmol.git
texture listener was enabled only when the macro CC_ENABLE_CACHE_TEXTURE_DATA was enabled.
This commit is contained in:
parent
973adc6b2f
commit
8145bf903e
|
@ -52,6 +52,9 @@ TextureAtlas::TextureAtlas()
|
|||
,_dirty(false)
|
||||
,_texture(nullptr)
|
||||
,_quads(nullptr)
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
,_backToForegroundlistener(nullptr)
|
||||
#endif
|
||||
{}
|
||||
|
||||
TextureAtlas::~TextureAtlas()
|
||||
|
|
|
@ -238,7 +238,9 @@ protected:
|
|||
/** Quads that are going to be rendered */
|
||||
V3F_C4B_T2F_Quad* _quads;
|
||||
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
EventListenerCustom* _backToForegroundlistener;
|
||||
#endif
|
||||
};
|
||||
|
||||
// end of textures group
|
||||
|
|
|
@ -47,7 +47,9 @@ Renderer::Renderer()
|
|||
,_lastCommand(0)
|
||||
,_numQuads(0)
|
||||
,_glViewAssigned(false)
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
,_cacheTextureListener(nullptr)
|
||||
#endif
|
||||
{
|
||||
_commandGroupStack.push(DEFAULT_RENDER_QUEUE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue