[Windows] Use default aggregate initialization for NVAPI settings

Using the member initialization encouraged in NVAPI documentation for
NVDRS_SETTING results in builds enabling `dev_mode` breaking. Default
aggregate initialization results in a clean build though.
This commit is contained in:
Aitor Guevara 2024-07-25 13:55:56 +02:00
parent 2f2d1a7e68
commit 21f3e69a24

View file

@ -243,7 +243,7 @@ void GLManagerNative_Windows::_nvapi_setup_profile() {
}
}
NVDRS_SETTING ogl_thread_control_setting = { 0 };
NVDRS_SETTING ogl_thread_control_setting = {};
ogl_thread_control_setting.version = NVDRS_SETTING_VER;
ogl_thread_control_setting.settingId = OGL_THREAD_CONTROL_ID;
ogl_thread_control_setting.settingType = NVDRS_DWORD_TYPE;
@ -259,7 +259,7 @@ void GLManagerNative_Windows::_nvapi_setup_profile() {
return;
}
NVDRS_SETTING vrr_mode_setting = { 0 };
NVDRS_SETTING vrr_mode_setting = {};
vrr_mode_setting.version = NVDRS_SETTING_VER;
vrr_mode_setting.settingId = VRR_MODE_ID;
vrr_mode_setting.settingType = NVDRS_DWORD_TYPE;