[Mesa-dev] [PATCH 2/2] swrast: silence driContextSetFlags() parameter type warning

Ian Romanick idr at freedesktop.org
Fri Dec 20 13:27:29 PST 2013


Oops.  All of the other drivers call the Mesa context ctx and the
dri_context something else... and I managed to overlook the warning.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

On 12/13/2013 03:55 PM, Brian Paul wrote:
> ---
>  src/mesa/drivers/dri/swrast/swrast.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c
> index cfa9316..79a2740 100644
> --- a/src/mesa/drivers/dri/swrast/swrast.c
> +++ b/src/mesa/drivers/dri/swrast/swrast.c
> @@ -705,7 +705,7 @@ dri_create_context(gl_api api,
>  	goto context_fail;
>      }
>  
> -    driContextSetFlags(ctx, flags);
> +    driContextSetFlags(mesaCtx, flags);
>  
>      /* do bounds checking to prevent segfaults and server crashes! */
>      mesaCtx->Const.CheckArrayBounds = GL_TRUE;
> 



More information about the mesa-dev mailing list