From 18d358e0d6e9728abc75493154b9749db6460a9b Mon Sep 17 00:00:00 2001 From: nigels Date: Sat, 23 May 2009 04:25:54 +0000 Subject: [PATCH] fix bugs 2737009 and 2698776 git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@554 783a27ee-832a-0410-bc00-9f386506c6dd --- auto/src/glewinfo_tail.c | 2 +- auto/src/wglew_head.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index 3b417ea..f778e71 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -170,7 +170,7 @@ GLboolean glewCreateContext (int* pixelformat) void glewDestroyContext () { if (NULL != rc) wglMakeCurrent(NULL, NULL); - if (NULL != rc) wglDeleteContext(wglGetCurrentContext()); + if (NULL != rc) wglDeleteContext(rc); if (NULL != wnd && NULL != dc) ReleaseDC(wnd, dc); if (NULL != wnd) DestroyWindow(wnd); UnregisterClass("GLEW", GetModuleHandle(NULL)); diff --git a/auto/src/wglew_head.h b/auto/src/wglew_head.h index f29a52c..df88503 100644 --- a/auto/src/wglew_head.h +++ b/auto/src/wglew_head.h @@ -13,6 +13,7 @@ # define WIN32_LEAN_AND_MEAN 1 # endif #include +# undef WIN32_LEAN_AND_MEAN #endif /*