Cleanup: avoid uninitialized members in GHOST classes

This commit is contained in:
Campbell Barton 2023-08-11 09:34:08 +10:00
parent 87c61f2354
commit 9810942adf
2 changed files with 2 additions and 0 deletions

View File

@ -202,6 +202,7 @@ GHOST_ContextEGL::GHOST_ContextEGL(const GHOST_System *const system,
m_context(EGL_NO_CONTEXT),
m_surface(EGL_NO_SURFACE),
m_display(EGL_NO_DISPLAY),
m_config(EGL_NO_CONFIG_KHR),
m_swap_interval(1),
m_sharedContext(
choose_api(api, s_gl_sharedContext, s_gles_sharedContext, s_vg_sharedContext)),

View File

@ -32,6 +32,7 @@ GHOST_System::GHOST_System()
#ifdef WITH_INPUT_NDOF
m_ndofManager(nullptr),
#endif
m_preFullScreenSetting{0},
m_multitouchGestures(true),
m_tabletAPI(GHOST_kTabletAutomatic),
m_is_debug_enabled(false)