summaryrefslogtreecommitdiffstats
path: root/src/mesa
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
commit2d6d69bab6c74d92514b81a68c6c8b1dc428182a (patch)
treea522773d04b983dbb32de86ec07140a71e3eb004 /src/mesa
parent1d53603f1fb49dd839e427f161a8912cf58d80c8 (diff)
r200: move driContextSetFlags(ctx) call after ctx var is initialized
Otherwise, ctx was a garbage value. CC: "10.0" <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r200/r200_context.c5
1 files 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 );