mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-29 18:07:08 +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