summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPStructs.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2016-12-26 20:54:37 +0100
committerdegasus <wickmarkus@web.de>2016-12-26 22:10:21 +0100
commit04f319066dd13917dc652855eec3614bc79c56f7 (patch)
treebc0fba15e955a55a7292fce4463aeee069c2e2a2 /Source/Core/VideoCommon/BPStructs.cpp
parentd07d9ba499b837568a63175c8492070d15a42963 (diff)
TextureCache: Extract BP enum check to VideoCommon.
We have TOO many video backends.
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
{