Skip to content

Commit

Permalink
Fix segfault on Linux/Mesa
Browse files Browse the repository at this point in the history
For some reason, glGetString(GL_EXTENSIONS) is failing. This will need more investigation
  • Loading branch information
stephenjust committed May 8, 2014
1 parent 5f6829b commit 1070fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/graphics/irr_driver.cpp
Expand Up @@ -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;


Expand Down

0 comments on commit 1070fd7

Please sign in to comment.