radeon: move driContextSetFlags(ctx) call after ctx var is initialized
authorBrian Paul <brianp@vmware.com>
Sat, 1 Feb 2014 00:09:44 +0000 (17:09 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 1 Feb 2014 00:09:44 +0000 (17:09 -0700)
CC: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/mesa/drivers/dri/radeon/radeon_context.c

index 7d65e2eb5977cc26adddc6b211c3a3ca2552b410..1ceb4ab869e2ea6fbbfb2c32bc3902086e02c6ec 100644 (file)
@@ -242,12 +242,13 @@ r100CreateContext( gl_api api,
      return GL_FALSE;
    }
 
-   driContextSetFlags(ctx, flags);
-
    rmesa->radeon.swtcl.RenderIndex = ~0;
    rmesa->radeon.hw.all_dirty = GL_TRUE;
 
    ctx = &rmesa->radeon.glCtx;
+
+   driContextSetFlags(ctx, flags);
+
    /* Initialize the software rasterizer and helper modules.
     */
    _swrast_CreateContext( ctx );