fix bugs 2737009 and 2698776

git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@554 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
nigels 2009-05-23 04:25:54 +00:00
parent 67636dd2af
commit 18d358e0d6
2 changed files with 2 additions and 1 deletions

View File

@ -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));

View File

@ -13,6 +13,7 @@
# define WIN32_LEAN_AND_MEAN 1
# endif
#include <windows.h>
# undef WIN32_LEAN_AND_MEAN
#endif
/*