mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 05:45:07 +00:00
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:
parent
67636dd2af
commit
18d358e0d6
@ -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));
|
||||
|
@ -13,6 +13,7 @@
|
||||
# define WIN32_LEAN_AND_MEAN 1
|
||||
# endif
|
||||
#include <windows.h>
|
||||
# undef WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user