summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/x11/glxapi.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-03-26 11:35:00 -0600
committerBrian Paul <[email protected]>2016-03-29 18:13:45 -0600
commit75b713455c77931e5e90c30e65ac99d74dfb17f0 (patch)
tree55b067c206f3056629bc909570ca6772330ddaa4 /src/mesa/drivers/x11/glxapi.h
parentd8d029f22bcb49c26ddb11d0bb968d24f2a5fb7e (diff)
xlib: add support for GLX_ARB_create_context
This adds the glXCreateContextAttribsARB() function for the xlib/swrast driver. This allows more piglit tests to run with this driver. For example, without this patch we get: $ bin/fbo-generatemipmap-1d -auto piglit: error: waffle_config_choose failed due to WAFFLE_ERROR_UNSUPPORTED_ ON_PLATFORM: GLX_ARB_create_context is required in order to request an OpenGL version not equal to the default value 1.0 piglit: error: Failed to create waffle_config for OpenGL 2.0 Compatibility Context piglit: info: Failed to create any GL context PIGLIT: {"result": "skip" } Reviewed-by: Jose Fonseca <[email protected]> Acked-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/drivers/x11/glxapi.h')
-rw-r--r--src/mesa/drivers/x11/glxapi.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/glxapi.h b/src/mesa/drivers/x11/glxapi.h
index bd6e97053e6..aff38f7531d 100644
--- a/src/mesa/drivers/x11/glxapi.h
+++ b/src/mesa/drivers/x11/glxapi.h
@@ -201,6 +201,11 @@ struct _glxapi_table {
void (*BindTexImageEXT)(Display *dpy, GLXDrawable drawable, int buffer,
const int *attrib_list);
void (*ReleaseTexImageEXT)(Display *dpy, GLXDrawable drawable, int buffer);
+
+ /*** GLX_ARB_create_context ***/
+ GLXContext (*CreateContextAttribs)(Display *dpy, GLXFBConfig config,
+ GLXContext share_context, Bool direct,
+ const int *attrib_list);
};