mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +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 ()
|
void glewDestroyContext ()
|
||||||
{
|
{
|
||||||
if (NULL != rc) wglMakeCurrent(NULL, NULL);
|
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 && NULL != dc) ReleaseDC(wnd, dc);
|
||||||
if (NULL != wnd) DestroyWindow(wnd);
|
if (NULL != wnd) DestroyWindow(wnd);
|
||||||
UnregisterClass("GLEW", GetModuleHandle(NULL));
|
UnregisterClass("GLEW", GetModuleHandle(NULL));
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
# define WIN32_LEAN_AND_MEAN 1
|
# define WIN32_LEAN_AND_MEAN 1
|
||||||
# endif
|
# endif
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
# undef WIN32_LEAN_AND_MEAN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user