gl: Quell warning about incompatible pointer type

mask is a cairo_surface_t pointer, and is cast to a cairo_gl_surface_t
pointer in the _cairo_gl_surface_draw_image() call.
texture.owns_surface also expects mask to be a cairo_gl_surface_t
pointer, so apply the same cast here as well.

Fixes the following warning:

 cairo-gl-traps-compositor.c:370:35: warning: assignment from
  incompatible pointer type [enabled by default]

Ref.: 38bf7a65

Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
This commit is contained in:
Bryce W. Harrington 2013-06-20 03:16:29 +00:00 committed by Chris Wilson
parent aa764a3bbc
commit 982f288460

View file

@ -367,7 +367,7 @@ traps_to_operand (void *_dst,
if (unlikely (status))
goto error;
operand->texture.owns_surface = mask;
operand->texture.owns_surface = (cairo_gl_surface_t *)mask;
return CAIRO_STATUS_SUCCESS;
error: