From 7dba90b7cae9f193ce8b54678e7913a4dea976cb Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Tue, 9 Sep 2014 16:53:22 +0200 Subject: [PATCH] Removed racy checks of cached iconification state. --- src/window.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/window.c b/src/window.c index b937d3a2..15b75270 100644 --- a/src/window.c +++ b/src/window.c @@ -84,9 +84,6 @@ void _glfwInputWindowSize(_GLFWwindow* window, int width, int height) void _glfwInputWindowIconify(_GLFWwindow* window, int iconified) { - if (window->iconified == iconified) - return; - window->iconified = iconified; if (window->callbacks.iconify) @@ -499,9 +496,6 @@ GLFWAPI void glfwSetWindowSize(GLFWwindow* handle, int width, int height) _GLFW_REQUIRE_INIT(); - if (window->iconified) - return; - if (window->monitor) { window->videoMode.width = width; @@ -546,24 +540,14 @@ GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, GLFWAPI void glfwIconifyWindow(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - - if (window->iconified) - return; - _glfwPlatformIconifyWindow(window); } GLFWAPI void glfwRestoreWindow(GLFWwindow* handle) { _GLFWwindow* window = (_GLFWwindow*) handle; - _GLFW_REQUIRE_INIT(); - - if (!window->iconified) - return; - _glfwPlatformRestoreWindow(window); }