diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 3c931f4bd..91b5103e4 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -499,6 +499,7 @@ void IrrDriver::initDevice() m_glsl = (m_gl_major_version > 3 || (m_gl_major_version == 3 && m_gl_minor_version >= 1)); #endif initGL(); + m_sync = 0; // Parse extensions hasVSLayer = false; diff --git a/src/graphics/irr_driver.hpp b/src/graphics/irr_driver.hpp index 66f2c0313..2b4f121fd 100644 --- a/src/graphics/irr_driver.hpp +++ b/src/graphics/irr_driver.hpp @@ -208,7 +208,7 @@ private: bool m_need_ubo_workaround; bool m_need_rh_workaround; bool m_need_srgb_workaround; - GLsync m_sync = 0; + GLsync m_sync; /** The irrlicht device. */ IrrlichtDevice *m_device; /** Irrlicht scene manager. */