Add missing assertion

This commit is contained in:
Camilla Berglund 2016-07-11 16:39:53 +02:00
parent 73abf8a800
commit 613868b893

View File

@ -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);
} }