summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-01-31 17:09:44 -0700
committerBrian Paul <[email protected]>2014-01-31 17:09:44 -0700
commitf51ca46f0c7c3b87b62f6047b266faeffbaae619 (patch)
tree496c777e5a5f40d29192d3e2a5728ae7c23bacd4 /src/mesa/drivers/dri
parent2d6d69bab6c74d92514b81a68c6c8b1dc428182a (diff)
radeon: move driContextSetFlags(ctx) call after ctx var is initialized
CC: "10.0" <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c
index 7d65e2eb597..1ceb4ab869e 100644
--- a/src/mesa/drivers/dri/radeon/radeon_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_context.c
@@ -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 );