From 613868b8931b53067ad5f1ae22074facf1e9103b Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 11 Jul 2016 16:39:53 +0200 Subject: [PATCH] Add missing assertion --- src/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.c b/src/window.c index 70eb3283..5e74e6e0 100644 --- a/src/window.c +++ b/src/window.c @@ -628,6 +628,8 @@ GLFWAPI void glfwRestoreWindow(GLFWwindow* handle) GLFWAPI void glfwMaximizeWindow(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; + assert(window != NULL); + _GLFW_REQUIRE_INIT(); _glfwPlatformMaximizeWindow(window); }