Explicitly set up AllocateTexture configuration for palette conversion.

No functional change.
This commit is contained in:
magumagu 2015-02-19 15:53:52 -08:00
parent ddc815dd7a
commit 074397c12d
1 changed files with 7 additions and 1 deletions

View File

@ -406,7 +406,13 @@ TextureCache::TCacheEntryBase* TextureCache::Load(const u32 stage)
{ {
// Perform palette decoding. // Perform palette decoding.
TCacheEntryBase *entry = unconverted_copy->second; 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->SetGeneralParameters(address, texture_size, full_format);
decoded_entry->SetDimensions(entry->native_width, entry->native_height, 1); decoded_entry->SetDimensions(entry->native_width, entry->native_height, 1);