summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2015-02-19 15:53:52 -0800
committermagumagu <magumagu9@gmail.com>2015-02-19 15:57:05 -0800
commit074397c12dd95b6c5119054ed6674043fb4641cc (patch)
tree8da3afbedbb3d90b11503bbd3161db8b9aaca586 /Source/Core/VideoCommon/TextureCacheBase.cpp
parentddc815dd7a77d70e42a18d18443732ec2f6f782a (diff)
Explicitly set up AllocateTexture configuration for palette conversion.
No functional change.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp8
1 files changed, 7 insertions, 1 deletions
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);