summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
authorAitor Guevara <428243+aitorciki@users.noreply.github.com>2024-07-25 13:55:56 +0200
committerAitor Guevara <428243+aitorciki@users.noreply.github.com>2024-07-25 14:41:46 +0200
commit21f3e69a2489439c5f3eaed81a241bdb92a25e6f (patch)
treeaa03d73b4803d9f2c5cd3eea79c80fc094904580 /platform
parent2f2d1a7e68d315e5f26cde30532a51087536c9f6 (diff)
downloadredot-engine-21f3e69a2489439c5f3eaed81a241bdb92a25e6f.tar.gz
[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.
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/gl_manager_windows_native.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/windows/gl_manager_windows_native.cpp b/platform/windows/gl_manager_windows_native.cpp
index f74aa4ced7..8590c46d12 100644
--- a/platform/windows/gl_manager_windows_native.cpp
+++ b/platform/windows/gl_manager_windows_native.cpp
@@ -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;