Add a cast in shaped-texture.c to prevent warnings about comparing
signed and unsigned integers.
This commit is contained in:
parent
99d3cc1b2b
commit
0bbe8b8004
@ -258,8 +258,8 @@ meta_shaped_texture_ensure_mask (MetaShapedTexture *stex)
|
|||||||
GL_TEXTURE_HEIGHT,
|
GL_TEXTURE_HEIGHT,
|
||||||
&priv->mask_gl_height);
|
&priv->mask_gl_height);
|
||||||
|
|
||||||
if (priv->mask_gl_width == tex_width
|
if ((guint) priv->mask_gl_width == tex_width
|
||||||
&& priv->mask_gl_height == tex_height)
|
&& (guint) priv->mask_gl_height == tex_height)
|
||||||
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
||||||
priv->mask_tex_coords);
|
priv->mask_tex_coords);
|
||||||
else
|
else
|
||||||
@ -375,7 +375,8 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
|||||||
- alloc.y1),
|
- alloc.y1),
|
||||||
vertex_coords);
|
vertex_coords);
|
||||||
|
|
||||||
if (paint_gl_width == tex_width && paint_gl_height == tex_height)
|
if ((guint) paint_gl_width == tex_width
|
||||||
|
&& (guint) paint_gl_height == tex_height)
|
||||||
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
meta_shaped_texture_set_coord_array (0.0f, 0.0f, 1.0f, 1.0f,
|
||||||
paint_tex_coords);
|
paint_tex_coords);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user