From: Brian Paul Date: Sat, 1 Feb 2014 00:09:44 +0000 (-0700) Subject: r200: move driContextSetFlags(ctx) call after ctx var is initialized X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d6d69bab6c74d92514b81a68c6c8b1dc428182a;p=mesa.git r200: move driContextSetFlags(ctx) call after ctx var is initialized Otherwise, ctx was a garbage value. CC: "10.0" Reviewed-by: Alex Deucher --- 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 );