From 43409fa7b0e64f6d73c3d33bc9a39ba26dd4caeb Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 30 Nov 2011 13:06:59 -0800 Subject: [PATCH] glx: Add glx_screen_vtable::create_context_attribs Signed-off-by: Ian Romanick --- src/glx/dri2_glx.c | 3 ++- src/glx/dri_glx.c | 3 ++- src/glx/glxclient.h | 8 ++++++++ src/glx/indirect_glx.c | 3 ++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index a9bcebf9b5d..3c1212c6de0 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -857,7 +857,8 @@ dri2BindExtensions(struct dri2_screen *psc, const __DRIextension **extensions) } static const struct glx_screen_vtable dri2_screen_vtable = { - dri2_create_context + dri2_create_context, + NULL }; static struct glx_screen * diff --git a/src/glx/dri_glx.c b/src/glx/dri_glx.c index 3c14ef05fff..0cd7cca74fb 100644 --- a/src/glx/dri_glx.c +++ b/src/glx/dri_glx.c @@ -836,7 +836,8 @@ driBindExtensions(struct dri_screen *psc, const __DRIextension **extensions) } static const struct glx_screen_vtable dri_screen_vtable = { - dri_create_context + dri_create_context, + NULL }; static struct glx_screen * diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index 0011d39391d..ecfd823c7ea 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -468,6 +468,14 @@ struct glx_screen_vtable { struct glx_config *config, struct glx_context *shareList, int renderType); + + struct glx_context *(*create_context_attribs)(struct glx_screen *psc, + struct glx_config *config, + struct glx_context *shareList, + unsigned num_attrib, + const uint32_t *attribs, + unsigned *error); + }; struct glx_screen diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index 17689d45f23..b628688851a 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -437,7 +437,8 @@ indirect_create_context(struct glx_screen *psc, } struct glx_screen_vtable indirect_screen_vtable = { - indirect_create_context + indirect_create_context, + NULL }; _X_HIDDEN struct glx_screen * -- 2.30.2