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.
This commit is contained in:
Yuriy O'Donnell 2014-12-07 01:11:56 +01:00
parent 4392d3cd55
commit e90604c5ed

View File

@ -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 };