diff --git a/include/GL/wglew.h b/include/GL/wglew.h index 650b34c..ac6595f 100644 --- a/include/GL/wglew.h +++ b/include/GL/wglew.h @@ -1437,6 +1437,8 @@ GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x +GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (); +GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const char *name); GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name); #endif /* GLEW_MX */ diff --git a/src/glewinfo.c b/src/glewinfo.c index 1afe5a6..d636912 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -11555,10 +11555,10 @@ GLboolean glewCreateContext (struct createParams* params) int contextAttrs[20]; int i; - extern GLenum GLEWAPIENTRY wglewContextInit(); wglewContextInit(); - if (!wglewGetExtension("WGL_ARB_create_context_profile")) + /* Intel HD 3000 has WGL_ARB_create_context, but not WGL_ARB_create_context_profile */ + if (!wglewGetExtension("WGL_ARB_create_context")) return GL_TRUE; i = 0; @@ -11730,7 +11730,7 @@ GLboolean glewCreateContext (struct createParams *params) glxewContextInit(); - if (!glxewGetExtension("GLX_ARB_create_context_profile")) + if (!glxewGetExtension("GLX_ARB_create_context")) return GL_TRUE; if (glXQueryContext(dpy, oldCtx, GLX_FBCONFIG_ID, &FBConfigAttrs[1]))