From: TimePath Date: Sun, 23 Jul 2017 08:13:37 +0000 (+1000) Subject: Fix GTK3 crash X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42d47f9eb85f465caccf0ba8ed5d3605b941c08e;p=xonotic%2Fnetradiant.git Fix GTK3 crash --- diff --git a/radiant/mainframe.cpp b/radiant/mainframe.cpp index 3dbad8f2..d38525a9 100644 --- a/radiant/mainframe.cpp +++ b/radiant/mainframe.cpp @@ -3096,7 +3096,8 @@ void GlobalGL_sharedContextCreated(){ globalOutputStream() << "GL_VENDOR: " << reinterpret_cast( glGetString( GL_VENDOR ) ) << "\n"; globalOutputStream() << "GL_RENDERER: " << reinterpret_cast( glGetString( GL_RENDERER ) ) << "\n"; globalOutputStream() << "GL_VERSION: " << reinterpret_cast( glGetString( GL_VERSION ) ) << "\n"; - globalOutputStream() << "GL_EXTENSIONS: " << reinterpret_cast( glGetString( GL_EXTENSIONS ) ) << "\n"; + const auto extensions = reinterpret_cast( glGetString(GL_EXTENSIONS ) ); + globalOutputStream() << "GL_EXTENSIONS: " << (extensions ? extensions : "") << "\n"; QGL_sharedContextCreated( GlobalOpenGL() );