diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-06-03 10:55:56 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-06-03 18:06:58 -0700 |
commit | 8f778e4c6f28598ad3fc628d34bd0b96a1617f2a (patch) | |
tree | f657bdfabe9d0a89f87b65942f85e994ad07ba92 | |
parent | 196a26053686f4f48faa22ded15981786c8f86f3 (diff) |
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.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/waffle/glx/glx_display.c | 3 |
1 files changed, 1 insertions, 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"); |