Fix segfault on Linux/Mesa
For some reason, glGetString(GL_EXTENSIONS) is failing. This will need more investigation
This commit is contained in:
parent
5f6829b071
commit
1070fd7395
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user