Reviewed-by: Iago Toral Quiroga <ito...@igalia.com>

On Thu, 2016-07-28 at 15:35 -0700, Matt Turner wrote:
> ---
>  src/mesa/drivers/dri/i915/intel_clear.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i915/intel_clear.c
> b/src/mesa/drivers/dri/i915/intel_clear.c
> index 8cf7c142..4306826 100644
> --- a/src/mesa/drivers/dri/i915/intel_clear.c
> +++ b/src/mesa/drivers/dri/i915/intel_clear.c
> @@ -81,7 +81,7 @@ static void
>  intelClear(struct gl_context *ctx, GLbitfield mask)
>  {
>     struct intel_context *intel = intel_context(ctx);
> -   const GLuint colorMask = *((GLuint *) & ctx->Color.ColorMask[0]);
> +   GLuint colorMask;
>     GLbitfield tri_mask = 0;
>     GLbitfield blit_mask = 0;
>     GLbitfield swrast_mask = 0;
> @@ -89,6 +89,8 @@ intelClear(struct gl_context *ctx, GLbitfield mask)
>     struct intel_renderbuffer *irb;
>     int i;
>  
> +   memcpy(&colorMask, &ctx->Color.ColorMask[0], sizeof(colorMask));
> +
>     if (mask & (BUFFER_BIT_FRONT_LEFT | BUFFER_BIT_FRONT_RIGHT)) {
>        intel->front_buffer_dirty = true;
>     }
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to