From 14792c34029ca9202728f9fbd9ff0a9786e546f7 Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Sat, 13 Dec 2014 22:09:34 +0100 Subject: [PATCH] D3DState: Set the pixel shader in m_current when linking dynamically. --- Source/Core/VideoBackends/D3D/D3DState.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/VideoBackends/D3D/D3DState.h b/Source/Core/VideoBackends/D3D/D3DState.h index b9b02581ab..176da98e8b 100644 --- a/Source/Core/VideoBackends/D3D/D3DState.h +++ b/Source/Core/VideoBackends/D3D/D3DState.h @@ -198,6 +198,7 @@ public: void SetPixelShaderDynamic(ID3D11PixelShader* shader, ID3D11ClassInstance * const * classInstances, u32 classInstancesCount) { D3D::context->PSSetShader(shader, classInstances, classInstancesCount); + m_current.pixelShader = shader; m_pending.pixelShader = shader; }