fix realese crash on win32

This commit is contained in:
Eduardo Bart 2012-01-17 21:14:10 -02:00
parent dddfdbc0d5
commit 4491ee8bdd
1 changed files with 2 additions and 2 deletions

View File

@ -332,12 +332,12 @@ void WIN32Window::internalCreateGLContext()
bool WIN32Window::isExtensionSupported(const char *ext)
{
typedef const char* (__cdecl * wglGetExtensionsStringProc)(HDC hdc);
typedef const char* (WINAPI * wglGetExtensionsStringProc)();
wglGetExtensionsStringProc wglGetExtensionsString = (wglGetExtensionsStringProc)getExtensionProcAddress("wglGetExtensionsStringEXT");
if(!wglGetExtensionsString)
return false;
const char *exts = wglGetExtensionsString(m_deviceContext);
const char *exts = wglGetExtensionsString();
if(exts && strstr(exts, ext))
return true;