Merge pull request #94735 from aitorciki/nvdrs-memset-initialization

[Windows] Use default aggregate initialization for NVAPI settings
This commit is contained in:
Rémi Verschelde 2024-07-26 13:44:13 +02:00
commit 44342c385c
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 2 deletions

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;