Copy all layers of textures with CopyRectangleFromTexture

This commit is contained in:
mimimi085181 committed 2016-02-14 21:17:06 +01:00
1 parent 99555a35ca
commit bb4d636f34
3 files changed
+4 -3

No files matched your search

@@ -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);