From a92cd5b2454c984d56f2f7d03fe64baf6d39be4c Mon Sep 17 00:00:00 2001 From: Tomasz Lis Date: Wed, 17 Jul 2013 13:49:15 +0200 Subject: glx: Retrieve the value of RENDER_TYPE from GLX attribs array Make sure that context creation routines are provided with the value of RENDER_TYPE retrieved from GLX attribs. v2 (idr): Minor formatting changes. Change type of dri2_convert_glx_attribs render_type parameter to uint32_t to silence some GCC warnings. Signed-off-by: Tomasz Lis Signed-off-by: Ian Romanick Reviewed-by: Ian Romanick --- src/glx/drisw_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glx/drisw_glx.c') diff --git a/src/glx/drisw_glx.c b/src/glx/drisw_glx.c index 80ddf9cf753..2c3e8b5f3ba 100644 --- a/src/glx/drisw_glx.c +++ b/src/glx/drisw_glx.c @@ -447,8 +447,8 @@ drisw_create_context_attribs(struct glx_screen *base, /* Remap the GLX tokens to DRI2 tokens. */ if (!dri2_convert_glx_attribs(num_attribs, attribs, - &major_ver, &minor_ver, &flags, &api, &reset, - error)) + &major_ver, &minor_ver, &renderType, &flags, + &api, &reset, error)) return NULL; if (reset != __DRI_CTX_RESET_NO_NOTIFICATION) -- cgit v1.2.3