[Mesa-dev] [PATCH 2/2] radeon: move driContextSetFlags(ctx) call after ctx var is initialized

Brian Paul brian.e.paul at gmail.com
Mon Jan 27 12:08:11 PST 2014


From: Brian Paul <brianp at vmware.com>

CC: "10.0" <mesa-stable at lists.freedesktop.org>
---
 src/mesa/drivers/dri/radeon/radeon_context.c | 5 +++--
 1 file 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 73fd188..14dc3b2 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 );
-- 
1.8.3.2



More information about the mesa-dev mailing list