From e90604c5ed4e78780cb56bf969cc80eec57c0199 Mon Sep 17 00:00:00 2001 From: Yuriy O'Donnell Date: Sun, 7 Dec 2014 01:11:56 +0100 Subject: [PATCH] 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. --- Source/Core/VideoBackends/D3D/PSTextureEncoder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 };