mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 06:23:50 +00:00
Added NULL test for glGetStringi.
This commit is contained in:
parent
0153dab346
commit
eabbb20d17
@ -595,11 +595,12 @@ GLFWAPI int glfwExtensionSupported(const char* extension)
|
|||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
if (strcmp((const char*) window->GetStringi(GL_EXTENSIONS, i),
|
const char* en = (const char*) window->GetStringi(GL_EXTENSIONS, i);
|
||||||
extension) == 0)
|
if (en != NULL)
|
||||||
{
|
{
|
||||||
return GL_TRUE;
|
if (strcmp(en, extension) == 0)
|
||||||
}
|
return GL_TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // _GLFW_USE_OPENGL
|
#endif // _GLFW_USE_OPENGL
|
||||||
|
Loading…
Reference in New Issue
Block a user