mirror of https://github.com/axmolengine/axmol.git
Fix #2186
This commit is contained in:
parent
ca12633ca8
commit
08b1657e14
|
@ -77,6 +77,7 @@ void RenderTexture::listenToBackground(EventCustom* /*event*/)
|
|||
#if AX_ENABLE_CACHE_TEXTURE_DATA
|
||||
if (!_cachedTextureDirty)
|
||||
return;
|
||||
_cachedTextureDirty = false;
|
||||
// to get the rendered texture data
|
||||
auto func = [&](RefPtr<Image> uiTextureImage) {
|
||||
if (uiTextureImage)
|
||||
|
|
Loading…
Reference in New Issue