Add message to ArgumentException
This commit is contained in:
parent
190791a1c9
commit
32628bb8a3
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ namespace Ryujinx.Common.GraphicsDriver
|
||||||
{
|
{
|
||||||
NvapiSettingId.OglThreadControlId => (uint)(enabled ? OglThreadControl.OglThreadControlEnable : OglThreadControl.OglThreadControlDisable),
|
NvapiSettingId.OglThreadControlId => (uint)(enabled ? OglThreadControl.OglThreadControlEnable : OglThreadControl.OglThreadControlDisable),
|
||||||
NvapiSettingId.OglCplPreferDxPresentId => (uint)(enabled ? OglCplDxPresent.OglCplPreferDxPresentEnable : OglCplDxPresent.OglCplPreferDxPresentDisable),
|
NvapiSettingId.OglCplPreferDxPresentId => (uint)(enabled ? OglCplDxPresent.OglCplPreferDxPresentEnable : OglCplDxPresent.OglCplPreferDxPresentDisable),
|
||||||
_ => throw new ArgumentException(),
|
_ => throw new ArgumentException($"Invalid NVAPI setting id: {id}"),
|
||||||
};
|
};
|
||||||
|
|
||||||
NvdrsSetting setting = new()
|
NvdrsSetting setting = new()
|
||||||
|
|
Loading…
Reference in a new issue