mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 23:31:56 +00:00
fixed GLEW_MX wgl initialization bug
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@503 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
41e3429ce3
commit
5067661b03
@ -30,9 +30,7 @@ GLenum wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST)
|
|||||||
{
|
{
|
||||||
GLboolean crippled;
|
GLboolean crippled;
|
||||||
/* find wgl extension string query functions */
|
/* find wgl extension string query functions */
|
||||||
if (_wglewGetExtensionsStringARB == NULL)
|
_wglewGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB");
|
||||||
_wglewGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB");
|
_wglewGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT");
|
||||||
if (_wglewGetExtensionsStringEXT == NULL)
|
|
||||||
_wglewGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT");
|
|
||||||
/* initialize extensions */
|
/* initialize extensions */
|
||||||
crippled = _wglewGetExtensionsStringARB == NULL && _wglewGetExtensionsStringEXT == NULL;
|
crippled = _wglewGetExtensionsStringARB == NULL && _wglewGetExtensionsStringEXT == NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user