Added Win32 window re-creation hack.

master
Camilla Berglund ago%!(EXTRA string=15 years)
parent 39a966d136
commit 3863a22dc1
  1. 10
      src/win32/win32_window.c

@ -1217,6 +1217,16 @@ static int createWindow(_GLFWwindow* window,
static void destroyWindow(_GLFWwindow* window)
{
// This is duplicated from glfwCloseWindow
// TODO: Stop duplicating code
if (window == _glfwLibrary.currentWindow)
glfwMakeWindowCurrent(NULL);
// This is duplicated from glfwCloseWindow
// TODO: Stop duplicating code
if (window == _glfwLibrary.activeWindow)
_glfwLibrary.activeWindow = NULL;
if (window->WGL.context)
{
wglDeleteContext(window->WGL.context);

Loading…
Cancel
Save