diff options
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 43c6628a14..e4444164c4 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -1087,8 +1087,9 @@ void Renderer::ApplyState(bool bUseDstAlpha) SetLogicOpMode(); } - D3D::context->PSSetConstantBuffers(0, 1, &PixelShaderCache::GetConstantBuffer()); - D3D::context->VSSetConstantBuffers(0, 1, &VertexShaderCache::GetConstantBuffer()); + ID3D11Buffer* const_buffers[2] = {PixelShaderCache::GetConstantBuffer(), VertexShaderCache::GetConstantBuffer()}; + D3D::context->PSSetConstantBuffers(0, 2, const_buffers); + D3D::context->VSSetConstantBuffers(0, 1, const_buffers+1); D3D::context->PSSetShader(PixelShaderCache::GetActiveShader(), nullptr, 0); D3D::context->VSSetShader(VertexShaderCache::GetActiveShader(), nullptr, 0); |
