From 2200f87492bac38143177e13b39e9fe097169d9e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 12 Mar 2014 20:53:57 +0100 Subject: [PATCH] Fixed glfwDestroyWindow not flushing the output buffer. --- README.md | 1 + src/x11_window.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 54207901..9cd22966 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,7 @@ The following dependencies are needed by the examples and test programs: - [X11] Bugfix: No check was made for the presence GLX 1.3 when `GLX_SGIX_fbconfig` was unavailable - [X11] Bugfix: The message type of ICCCM protocol events was not checked + - [X11] Bugfix: `glfwDestroyWindow` did not flush the output buffer. ## Contact diff --git a/src/x11_window.c b/src/x11_window.c index ede208be..d642a302 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1106,6 +1106,8 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window) XFreeColormap(_glfw.x11.display, window->x11.colormap); window->x11.colormap = (Colormap) 0; } + + XFlush(_glfw.x11.display); } void _glfwPlatformSetWindowTitle(_GLFWwindow* window, const char* title)