mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
D3D12: Fix out of bounds root parameter index when per-pixel lighting is disabled
This commit is contained in:
@ -370,6 +370,9 @@ bool DXContext::CreateGXRootSignature()
|
||||
SetRootParamConstant(¶ms[param_count], 4, 1, D3D12_SHADER_VISIBILITY_VERTEX);
|
||||
param_count++;
|
||||
|
||||
SetRootParamCBV(¶ms[param_count], 2, D3D12_SHADER_VISIBILITY_PIXEL);
|
||||
param_count++;
|
||||
|
||||
// Since these must be contiguous, pixel lighting goes to bbox if not enabled.
|
||||
if (g_ActiveConfig.bBBoxEnable)
|
||||
{
|
||||
@ -383,9 +386,6 @@ bool DXContext::CreateGXRootSignature()
|
||||
param_count++;
|
||||
}
|
||||
|
||||
SetRootParamCBV(¶ms[param_count], 2, D3D12_SHADER_VISIBILITY_PIXEL);
|
||||
param_count++;
|
||||
|
||||
return BuildRootSignature(m_device.Get(), &m_gx_root_signature, params.data(), param_count);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user