summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2016-12-27 01:43:57 +0100
committerGitHub <noreply@github.com>2016-12-27 01:43:57 +0100
commitfd54d4f767ad162d6258a41e98df31a85b7d740e (patch)
treefcd6e3dcaed1c305ac3ea021040880d796395335 /Source/Core/VideoCommon/BPStructs.cpp
parent1af9f68240d8bcd87b684e9736da784f7740f438 (diff)
parentabf9bb170bf954220a50921a10f57eaa30e17779 (diff)
Merge pull request #4569 from degasus/texcache2
TextureCache: Extract BP enum check to VideoCommon.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
-rw-r--r--Source/Core/VideoCommon/BPStructs.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp
index 75227a0433..5bd1b6027f 100644
--- a/Source/Core/VideoCommon/BPStructs.cpp
+++ b/Source/Core/VideoCommon/BPStructs.cpp
@@ -227,9 +227,10 @@ static void BPWritten(const BPCmd& bp)
{
// bpmem.zcontrol.pixel_format to PEControl::Z24 is when the game wants to copy from ZBuffer
// (Zbuffer uses 24-bit Format)
+ bool is_depth_copy = bpmem.zcontrol.pixel_format == PEControl::Z24;
g_texture_cache->CopyRenderTargetToTexture(destAddr, PE_copy.tp_realFormat(), destStride,
- bpmem.zcontrol.pixel_format, srcRect,
- !!PE_copy.intensity_fmt, !!PE_copy.half_scale);
+ is_depth_copy, srcRect, !!PE_copy.intensity_fmt,
+ !!PE_copy.half_scale);
}
else
{