summaryrefslogtreecommitdiff
path: root/glx/glxdri2.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-12 18:51:52 +1000
committerDave Airlie <airlied@gmail.com>2012-07-13 11:19:25 +1000
commitd1cae6bb804f7dfc889fd3c5d5eb116f4baf5149 (patch)
tree827c386f9835f5809f7a88cb81e4c0755f3148b4 /glx/glxdri2.c
parentea74e381ae91f45ec195a5505262e2e5a3c0e1c9 (diff)
glx: pass screen into the convert function
when robustness is enabled, this is required. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r--glx/glxdri2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index be5afbce4..f3e26b773 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -393,7 +393,8 @@ __glXDRIscreenDestroy(__GLXscreen * baseScreen)
}
static Bool
-dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs,
+dri2_convert_glx_attribs(__GLXDRIscreen *screen, unsigned num_attribs,
+ const uint32_t *attribs,
unsigned *major_ver, unsigned *minor_ver,
uint32_t *flags, int *api, int *reset, unsigned *error)
{
@@ -516,7 +517,7 @@ create_driver_context(__GLXDRIcontext * context,
int api;
if (num_attribs != 0) {
- if (!dri2_convert_glx_attribs(num_attribs, attribs,
+ if (!dri2_convert_glx_attribs(screen, num_attribs, attribs,
&major_ver, &minor_ver,
&flags, &api, &reset,
(unsigned *) error))