Fix segfault on Linux/Mesa

For some reason, glGetString(GL_EXTENSIONS) is failing. This will need more investigation
This commit is contained in:
Stephen Just 2014-05-07 23:19:39 -06:00
parent 5f6829b071
commit 1070fd7395

View File

@ -444,7 +444,7 @@ void IrrDriver::initDevice()
// Parse extensions
hasVSLayer = false;
const GLubyte *extensions = glGetString(GL_EXTENSIONS);
if (strstr((const char*)extensions, "GL_AMD_vertex_shader_layer") != NULL)
if (extensions && strstr((const char*)extensions, "GL_AMD_vertex_shader_layer") != NULL)
hasVSLayer = true;