From 2d6d69bab6c74d92514b81a68c6c8b1dc428182a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 31 Jan 2014 17:09:44 -0700 Subject: [PATCH] r200: move driContextSetFlags(ctx) call after ctx var is initialized Otherwise, ctx was a garbage value. CC: "10.0" Reviewed-by: Alex Deucher --- src/mesa/drivers/dri/r200/r200_context.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index 637a26332c5..0043090f1a4 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -279,12 +279,13 @@ GLboolean r200CreateContext( gl_api api, return GL_FALSE; } - driContextSetFlags(ctx, flags); - rmesa->radeon.swtcl.RenderIndex = ~0; rmesa->radeon.hw.all_dirty = 1; ctx = &rmesa->radeon.glCtx; + + driContextSetFlags(ctx, flags); + /* Initialize the software rasterizer and helper modules. */ _swrast_CreateContext( ctx ); -- 2.30.2