projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d53603
)
r200: move driContextSetFlags(ctx) call after ctx var is initialized
author
Brian Paul
<brianp@vmware.com>
Sat, 1 Feb 2014 00:09:44 +0000
(17:09 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 1 Feb 2014 00:09:44 +0000
(17:09 -0700)
Otherwise, ctx was a garbage value.
CC: "10.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/mesa/drivers/dri/r200/r200_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/r200/r200_context.c
b/src/mesa/drivers/dri/r200/r200_context.c
index 637a26332c56a242fccb485d34489c735a235686..0043090f1a4a5ccc0a03298d5f0ed5957554ee2a 100644
(file)
--- 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 );