[waffle] [PATCH] glx: Query proper extension string for ARB_create_context etc.
Paul Berry
stereotype441 at gmail.com
Mon Jun 3 10:55:56 PDT 2013
Previously we were using glXQueryExtensionsString() to see whether the
implementation supported ARB_create_context,
ARB_create_context_profile, and EXT_create_context_es_profile. This
is the wrong query--those extensions show up in the *client* extension
string, so we need to use glXGetClientString().
This allows us to create core contexts using GLX.
---
src/waffle/glx/glx_display.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/waffle/glx/glx_display.c b/src/waffle/glx/glx_display.c
index a29fb3c..15c52ae 100644
--- a/src/waffle/glx/glx_display.c
+++ b/src/waffle/glx/glx_display.c
@@ -51,8 +51,7 @@ static bool
glx_display_set_extensions(struct glx_display *self)
{
- const char *s = glXQueryExtensionsString(self->x11.xlib,
- self->x11.screen);
+ const char *s = glXGetClientString(self->x11.xlib, GLX_EXTENSIONS);
if (!s) {
wcore_errorf(WAFFLE_ERROR_UNKNOWN,
"glXQueryExtensionsString failed");
--
1.8.3
More information about the waffle
mailing list