summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy O'Donnell <yuriyo@gmail.com>2014-12-07 01:11:56 +0100
committerYuriy O'Donnell <yuriyo@gmail.com>2014-12-07 18:46:05 +0100
commite90604c5ed4e78780cb56bf969cc80eec57c0199 (patch)
treebde8ad7449e41c15f71d0d79810622b0bc1310f2
parent4392d3cd55f4b39ae6006702ff6466867609e2a3 (diff)
D3D: Fixed debug validation error
A texture was still being bound when OMSetRenderTargets is called. State manager resource cache must be flushed to unbind it. This fixes The Last Story cut scene rendering.
-rw-r--r--Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
index 408bb55ef3..09f124ecc6 100644
--- a/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
+++ b/Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp
@@ -1156,6 +1156,8 @@ size_t PSTextureEncoder::Encode(u8* dst, unsigned int dstFormat,
D3D::stateman->PopDepthState();
D3D::stateman->PopBlendState();
+ D3D::stateman->Apply();
+
// Transfer staging buffer to GameCube/Wii RAM
D3D11_MAPPED_SUBRESOURCE map = { 0 };