summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/D3D/TextureCache.cpp
diff options
context:
space:
mode:
authormimimi085181 <mimimi085181@gmail.com>2015-01-10 13:47:52 +0100
committermimimi085181 <mimimi085181@gmail.com>2015-01-10 13:47:52 +0100
commit56e93f8fdd7b8589d711948694ce16e71bbb9535 (patch)
treea5ef949c223db80233e46642880250667b841e77 /Source/Core/VideoBackends/D3D/TextureCache.cpp
parente32d63c43d7b03ec5137d3764ce9eb9309805809 (diff)
Update size_in_bytes of texture cache entries when copying efb to ram
Diffstat (limited to 'Source/Core/VideoBackends/D3D/TextureCache.cpp')
-rw-r--r--Source/Core/VideoBackends/D3D/TextureCache.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/D3D/TextureCache.cpp b/Source/Core/VideoBackends/D3D/TextureCache.cpp
index af1267c1de..557110f9ec 100644
--- a/Source/Core/VideoBackends/D3D/TextureCache.cpp
+++ b/Source/Core/VideoBackends/D3D/TextureCache.cpp
@@ -185,6 +185,8 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
u64 hash = GetHash64(dst, (int)encoded_size, g_ActiveConfig.iSafeTextureCache_ColorSamples);
+ size_in_bytes = (u32)encoded_size;
+
// Mark texture entries in destination address range dynamic unless caching is enabled and the texture entry is up to date
if (!g_ActiveConfig.bEFBCopyCacheEnable)
TextureCache::MakeRangeDynamic(addr, (u32)encoded_size);