[Mesa-dev] [PATCH 08/40] mesa: Update gl_scissor_attrib to support ARB_viewport_array

Kenneth Graunke kenneth at whitecape.org
Sat Jan 11 15:34:22 PST 2014


On 01/10/2014 05:40 PM, Ian Romanick wrote:
[snip]
> diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
> index fdf9b37..9e1faa9 100644
> --- a/src/mesa/swrast/s_context.c
> +++ b/src/mesa/swrast/s_context.c
> @@ -61,7 +61,7 @@ _swrast_update_rasterflags( struct gl_context *ctx )
>     if (ctx->Color.BlendEnabled)           rasterMask |= BLEND_BIT;
>     if (ctx->Depth.Test)                   rasterMask |= DEPTH_BIT;
>     if (swrast->_FogEnabled)               rasterMask |= FOG_BIT;
> -   if (ctx->Scissor.Enabled)              rasterMask |= CLIP_BIT;
> +   if (ctx->Scissor.EnableFlags)              rasterMask |= CLIP_BIT;

Indentation went a bit funky here.

>     if (ctx->Stencil._Enabled)             rasterMask |= STENCIL_BIT;
>     for (i = 0; i < ctx->Const.MaxDrawBuffers; i++) {
>        if (!ctx->Color.ColorMask[i][0] ||
> 



More information about the mesa-dev mailing list