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

Alex Deucher alexdeucher at gmail.com
Mon Jan 27 15:45:04 PST 2014


On Mon, Jan 27, 2014 at 3:08 PM, Brian Paul <brian.e.paul at gmail.com> wrote:
> From: Brian Paul <brianp at vmware.com>
>
> Otherwise, ctx was a garbage value.
>
> CC: "10.0" <mesa-stable at lists.freedesktop.org>

For the series:

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  src/mesa/drivers/dri/r200/r200_context.c | 5 +++--
>  1 file 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 a7021f2..88be4f0 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 );
> --
> 1.8.3.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list