mirror of
https://github.com/glfw/glfw.git
synced 2024-11-10 00:51:47 +00:00
Added Win32 window re-creation hack.
This commit is contained in:
parent
39a966d136
commit
3863a22dc1
@ -1217,6 +1217,16 @@ static int createWindow(_GLFWwindow* window,
|
|||||||
|
|
||||||
static void destroyWindow(_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)
|
if (window->WGL.context)
|
||||||
{
|
{
|
||||||
wglDeleteContext(window->WGL.context);
|
wglDeleteContext(window->WGL.context);
|
||||||
|
Loading…
Reference in New Issue
Block a user