From 4c009908e2638f78c7aa3d1d364cd36add62a929 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 24 Jul 2015 11:37:01 +1000 Subject: [PATCH 1/3] Windows glewinfo fixup - expose wglewContextInit and wglewIsSupported. --- auto/src/glewinfo_tail.c | 1 - auto/src/wglew_tail.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index 95c7ed1..ad5f530 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -195,7 +195,6 @@ GLboolean glewCreateContext (struct createParams* params) int contextAttrs[20]; int i; - extern GLenum GLEWAPIENTRY wglewContextInit(); wglewContextInit(); if (!wglewGetExtension("WGL_ARB_create_context_profile")) diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h index 9bbe945..0e38466 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -17,6 +17,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 */ From d367215cde3f4121365a3240c0ad7c43e864c12c Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 24 Jul 2015 11:52:16 +1000 Subject: [PATCH 2/3] Windows glewinfo fixup - check for WGL_ARB_create_context --- auto/src/glewinfo_tail.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index ad5f530..ace3644 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -197,7 +197,8 @@ GLboolean glewCreateContext (struct createParams* params) 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; From ba410e12e28f2c1246b625da0a0db7227a152bed Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Fri, 24 Jul 2015 12:16:39 +1000 Subject: [PATCH 3/3] glxewContextInit fixup - require GLX_ARB_create_context. --- auto/src/glewinfo_tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/src/glewinfo_tail.c b/auto/src/glewinfo_tail.c index ace3644..8aed4d3 100644 --- a/auto/src/glewinfo_tail.c +++ b/auto/src/glewinfo_tail.c @@ -370,7 +370,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]))