mirror of
https://github.com/glfw/glfw.git
synced 2026-09-22 16:52:57 +00:00
Add missing assertion
This commit is contained in:
@@ -628,6 +628,8 @@ GLFWAPI void glfwRestoreWindow(GLFWwindow* handle)
|
|||||||
GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle)
|
GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle)
|
||||||
{
|
{
|
||||||
_GLFWwindow* window = (_GLFWwindow*) handle;
|
_GLFWwindow* window = (_GLFWwindow*) handle;
|
||||||
|
assert(window != NULL);
|
||||||
|
|
||||||
_GLFW_REQUIRE_INIT();
|
_GLFW_REQUIRE_INIT();
|
||||||
_glfwPlatformMaximizeWindow(window);
|
_glfwPlatformMaximizeWindow(window);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user