Copy all layers of textures with CopyRectangleFromTexture

This commit is contained in:
mimimi085181
2016-02-14 17:13:07 +01:00
parent 99555a35ca
commit bb4d636f34
3 changed files with 4 additions and 3 deletions

View File

@ -226,6 +226,7 @@ void TextureCacheBase::ScaleTextureCacheEntryTo(TextureCacheBase::TCacheEntryBas
TextureCacheBase::TCacheEntryConfig newconfig;
newconfig.width = new_width;
newconfig.height = new_height;
newconfig.layers = (*entry)->config.layers;
newconfig.rendertarget = true;
TCacheEntryBase* newentry = AllocateTexture(newconfig);