mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
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:
parent
aa764a3bbc
commit
982f288460
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue