diff options
author | Ian Romanick <[email protected]> | 2011-11-30 13:06:59 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-01-02 12:41:44 -0800 |
commit | 43409fa7b0e64f6d73c3d33bc9a39ba26dd4caeb (patch) | |
tree | 0b13694fbefa99dbb33a2e2cacaf65989731436e /src | |
parent | eacd61bfefc416166998b2344540dab1e4e77beb (diff) |
glx: Add glx_screen_vtable::create_context_attribs
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/glx/dri2_glx.c | 3 | ||||
-rw-r--r-- | src/glx/dri_glx.c | 3 | ||||
-rw-r--r-- | src/glx/glxclient.h | 8 | ||||
-rw-r--r-- | 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 * |