summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@gmail.com>2012-06-03 13:02:11 +0200
committerNeoBrainX <NeoBrainX@gmail.com>2012-06-20 18:18:19 +0200
commit043a85f8a6dc55d5ef390115ca2c745bd5810339 (patch)
treee583ad0a162006f529a11415c86d94280d45e7f0 /Source/Core/VideoCommon/Src/TextureCacheBase.cpp
parent8a5abbddc41120ec21a5bb2632279895b884c1ff (diff)
Minor cleanup.
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
index 268eab38d1..7b79944b0c 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
@@ -763,16 +763,12 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
TCacheEntryBase *entry = textures[dstAddr];
if (entry)
{
- if ((entry->type == TCET_EC_VRAM && entry->virtual_width == scaled_tex_w && entry->virtual_height == scaled_tex_h)
- || (entry->type == TCET_EC_DYNAMIC && entry->native_width == tex_w && entry->native_height == tex_h))
+ if (entry->type == TCET_EC_DYNAMIC && entry->native_width == tex_w && entry->native_height == tex_h)
{
- if (entry->type == TCET_EC_DYNAMIC)
- {
- scaled_tex_w = tex_w;
- scaled_tex_h = tex_h;
- }
+ scaled_tex_w = tex_w;
+ scaled_tex_h = tex_h;
}
- else
+ else if (!(entry->type == TCET_EC_VRAM && entry->virtual_width == scaled_tex_w && entry->virtual_height == scaled_tex_h))
{
// remove it and recreate it as a render target
delete entry;