Fix crash with --no-graphics

This commit is contained in:
Flakebi 2014-11-20 21:22:58 +01:00
parent 10ffb5411e
commit aecd9c4b80

View File

@ -515,7 +515,8 @@ void IrrDriver::initDevice()
#else
m_glsl = (m_gl_major_version > 3 || (m_gl_major_version == 3 && m_gl_minor_version >= 1));
#endif
initGL();
if (!ProfileWorld::isNoGraphics())
initGL();
m_sync = 0;
// Parse extensions