mirror of https://github.com/axmolengine/axmol.git
fix location (#19764)
This commit is contained in:
parent
23a21ef298
commit
000a5e124b
|
@ -146,6 +146,10 @@ TextureInfo& TextureInfo::operator=(TextureInfo&& rhs)
|
|||
//release the textures before cleaning the vertor
|
||||
rhs.releaseTextures();
|
||||
rhs.textures.clear();
|
||||
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
location = rhs.location;
|
||||
#endif
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
@ -157,6 +161,10 @@ TextureInfo& TextureInfo::operator=(const TextureInfo& rhs)
|
|||
slot = rhs.slot;
|
||||
textures = rhs.textures;
|
||||
retainTextures();
|
||||
|
||||
#if CC_ENABLE_CACHE_TEXTURE_DATA
|
||||
location = rhs.location;
|
||||
#endif
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue