From 074397c12dd95b6c5119054ed6674043fb4641cc Mon Sep 17 00:00:00 2001 From: magumagu Date: Thu, 19 Feb 2015 15:53:52 -0800 Subject: [PATCH] Explicitly set up AllocateTexture configuration for palette conversion. No functional change. --- Source/Core/VideoCommon/TextureCacheBase.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 736ab57428..62fdfa80d2 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -406,7 +406,13 @@ TextureCache::TCacheEntryBase* TextureCache::Load(const u32 stage) { // Perform palette decoding. TCacheEntryBase *entry = unconverted_copy->second; - TCacheEntryBase *decoded_entry = AllocateTexture(entry->config); + + TCacheEntryConfig config; + config.rendertarget = true; + config.width = entry->config.width; + config.height = entry->config.height; + config.layers = FramebufferManagerBase::GetEFBLayers(); + TCacheEntryBase *decoded_entry = AllocateTexture(config); decoded_entry->SetGeneralParameters(address, texture_size, full_format); decoded_entry->SetDimensions(entry->native_width, entry->native_height, 1);