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)
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue