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 /*