diff options
| author | mimimi085181 <mimimi085181@gmail.com> | 2015-01-10 13:47:52 +0100 |
|---|---|---|
| committer | mimimi085181 <mimimi085181@gmail.com> | 2015-01-10 13:47:52 +0100 |
| commit | 56e93f8fdd7b8589d711948694ce16e71bbb9535 (patch) | |
| tree | a5ef949c223db80233e46642880250667b841e77 /Source/Core/VideoBackends/OGL/TextureCache.cpp | |
| parent | e32d63c43d7b03ec5137d3764ce9eb9309805809 (diff) | |
Update size_in_bytes of texture cache entries when copying efb to ram
Diffstat (limited to 'Source/Core/VideoBackends/OGL/TextureCache.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/TextureCache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/TextureCache.cpp b/Source/Core/VideoBackends/OGL/TextureCache.cpp index 4199604cd0..9d4f713d96 100644 --- a/Source/Core/VideoBackends/OGL/TextureCache.cpp +++ b/Source/Core/VideoBackends/OGL/TextureCache.cpp @@ -295,6 +295,8 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo u8* dst = Memory::GetPointer(addr); u64 const new_hash = GetHash64(dst,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,encoded_size); |
