mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
LightingShader: hard code const variable
This commit is contained in:
parent
e456a5e64f
commit
924ad1ee9f
9 changed files with 133 additions and 105 deletions
|
@ -1088,7 +1088,7 @@ void Renderer::ApplyState(bool bUseDstAlpha)
|
|||
}
|
||||
|
||||
ID3D11Buffer* const_buffers[2] = {PixelShaderCache::GetConstantBuffer(), VertexShaderCache::GetConstantBuffer()};
|
||||
D3D::context->PSSetConstantBuffers(0, 2, const_buffers);
|
||||
D3D::context->PSSetConstantBuffers(0, 1 + g_ActiveConfig.bEnablePixelLighting, const_buffers);
|
||||
D3D::context->VSSetConstantBuffers(0, 1, const_buffers+1);
|
||||
|
||||
D3D::context->PSSetShader(PixelShaderCache::GetActiveShader(), nullptr, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue