[waffle] [PATCH] glx: Query proper extension string for ARB_create_context etc.
Chad Versace
chad.versace at linux.intel.com
Mon Jun 3 18:08:03 PDT 2013
Thanks. Pushed to master and 1.2.
On 06/03/2013 10:55 AM, Paul Berry wrote:
> 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");
>
More information about the waffle
mailing list