diff options
author | Bryce W. Harrington <b.harrington@samsung.com> | 2013-06-20 03:16:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-20 11:00:37 +0100 |
commit | 982f288460591a8f2b8a78db89ae6e5495d2b3b8 (patch) | |
tree | 8d5b8bf4631bce174d297004f80540223af8153c /src | |
parent | aa764a3bbc3fe43191d877aaec42b73c7d55d040 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-gl-traps-compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-traps-compositor.c b/src/cairo-gl-traps-compositor.c index 548162be4..ec478ee53 100644 --- a/src/cairo-gl-traps-compositor.c +++ b/src/cairo-gl-traps-compositor.c @@ -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: |