mirror of
https://github.com/glfw/glfw.git
synced 2024-12-01 22:37:12 +00:00
Oh, right, this is C.
This commit is contained in:
parent
2fc42e9017
commit
973ff494ac
@ -128,6 +128,7 @@ int _glfwStringInExtensionString(const char* string,
|
|||||||
GLFWAPI int glfwExtensionSupported(const char* extension)
|
GLFWAPI int glfwExtensionSupported(const char* extension)
|
||||||
{
|
{
|
||||||
const GLubyte* extensions;
|
const GLubyte* extensions;
|
||||||
|
_GLFWwindow* window;
|
||||||
GLubyte* where;
|
GLubyte* where;
|
||||||
GLint count;
|
GLint count;
|
||||||
int i;
|
int i;
|
||||||
@ -138,14 +139,13 @@ GLFWAPI int glfwExtensionSupported(const char* extension)
|
|||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_glfwLibrary.currentWindow)
|
window = _glfwLibrary.currentWindow;
|
||||||
|
if (!window)
|
||||||
{
|
{
|
||||||
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
|
_glfwSetError(GLFW_NO_CURRENT_WINDOW);
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_GLFWwindow* window = _glfwLibrary.currentWindow;
|
|
||||||
|
|
||||||
// Extension names should not have spaces
|
// Extension names should not have spaces
|
||||||
where = (GLubyte*) strchr(extension, ' ');
|
where = (GLubyte*) strchr(extension, ' ');
|
||||||
if (where || *extension == '\0')
|
if (where || *extension == '\0')
|
||||||
|
Loading…
Reference in New Issue
Block a user