fix realese crash on win32
This commit is contained in:
parent
dddfdbc0d5
commit
4491ee8bdd
|
@ -332,12 +332,12 @@ void WIN32Window::internalCreateGLContext()
|
||||||
|
|
||||||
bool WIN32Window::isExtensionSupported(const char *ext)
|
bool WIN32Window::isExtensionSupported(const char *ext)
|
||||||
{
|
{
|
||||||
typedef const char* (__cdecl * wglGetExtensionsStringProc)(HDC hdc);
|
typedef const char* (WINAPI * wglGetExtensionsStringProc)();
|
||||||
wglGetExtensionsStringProc wglGetExtensionsString = (wglGetExtensionsStringProc)getExtensionProcAddress("wglGetExtensionsStringEXT");
|
wglGetExtensionsStringProc wglGetExtensionsString = (wglGetExtensionsStringProc)getExtensionProcAddress("wglGetExtensionsStringEXT");
|
||||||
if(!wglGetExtensionsString)
|
if(!wglGetExtensionsString)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
const char *exts = wglGetExtensionsString(m_deviceContext);
|
const char *exts = wglGetExtensionsString();
|
||||||
if(exts && strstr(exts, ext))
|
if(exts && strstr(exts, ext))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue