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