mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
PixelShader: use the vertex const buffer for ppl
This commit is contained in:
parent
027baad73b
commit
d93f2973f7
2 changed files with 31 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue