diff options
author | Brian Paul <brianp@vmware.com> | 2014-01-31 17:09:44 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2014-03-04 12:55:07 -0800 |
commit | 5297fdc0c814badb0f86d312823ebf35c75adf54 (patch) | |
tree | af63d86043dc70130345f4896df7399471736660 | |
parent | edf066f3851a25f1cec562d8bde80d290291703a (diff) | |
download | mesa-5297fdc0c814badb0f86d312823ebf35c75adf54.tar.gz |
r200: move driContextSetFlags(ctx) call after ctx var is initialized
Otherwise, ctx was a garbage value.
CC: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 2d6d69bab6c74d92514b81a68c6c8b1dc428182a)
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_context.c | 5 |
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 ff067733890..72199ce584a 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 ); |