summaryrefslogtreecommitdiff
path: root/glx/glxscreens.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-12-05 10:56:07 -0800
committerIan Romanick <ian.d.romanick@intel.com>2012-05-23 13:07:51 -0700
commit96d74138b1c0273e88933220d99a893858b649cd (patch)
tree92c96f2a96c41a449ff82388fdff2dc995825c4e /glx/glxscreens.h
parent62f06b0dcde13cb87bc3d0c5ff86d8db7e3ff0ef (diff)
glx: Extend __GLXscreen::createContext to take attributes
The attributes will be used for glXCreateContextAttribsARB additions in follow-on patches. v2: Add missing 'int *error' parameters noticed by Christopher James Halse Rogers. v3: Remove redundant 'int err;' declaration noticed by Christopher James Halse Rogers. This was supposed to be in v2, but I missed it. v4: Add comma missing from additions in v2. Ugh. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Diffstat (limited to 'glx/glxscreens.h')
-rw-r--r--glx/glxscreens.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/glx/glxscreens.h b/glx/glxscreens.h
index d5420ee8d..7ef4657f2 100644
--- a/glx/glxscreens.h
+++ b/glx/glxscreens.h
@@ -117,7 +117,10 @@ struct __GLXscreen {
__GLXcontext *(*createContext) (__GLXscreen * screen,
__GLXconfig * modes,
- __GLXcontext * shareContext);
+ __GLXcontext * shareContext,
+ unsigned num_attribs,
+ const uint32_t *attribs,
+ int *error);
__GLXdrawable *(*createDrawable) (ClientPtr client,
__GLXscreen * context,