Skip to content

Commit

Permalink
Merge pull request #94735 from aitorciki/nvdrs-memset-initialization
Browse files Browse the repository at this point in the history
[Windows] Use default aggregate initialization for NVAPI settings
  • Loading branch information
akien-mga committed Jul 26, 2024
2 parents b2facc0 + 21f3e69 commit 44342c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/windows/gl_manager_windows_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 44342c3

Please sign in to comment.