guint load_async_set : 1; /* used to make load_async possible */
guint pick_with_alpha : 1;
guint pick_with_alpha_supported : 1;
+ guint seen_create_pick_material_warning : 1;
};
struct _ClutterTextureAsyncData
static CoglHandle
create_pick_material (ClutterActor *self)
{
+ ClutterTexture *texture = CLUTTER_TEXTURE (self);
+ ClutterTexturePrivate *priv = texture->priv;
CoglHandle pick_material = cogl_material_new ();
GError *error = NULL;
" MODULATE (CONSTANT, TEXTURE[A])",
&error))
{
- static gboolean seen_warning = FALSE;
- if (!seen_warning)
+ if (!priv->seen_create_pick_material_warning)
g_warning ("Error setting up texture combine for shaped "
"texture picking: %s", error->message);
- seen_warning = TRUE;
+ priv->seen_create_pick_material_warning = TRUE;
g_error_free (error);
cogl_handle_unref (pick_material);
return COGL_INVALID_HANDLE;
priv->keep_aspect_ratio = FALSE;
priv->pick_with_alpha = FALSE;
priv->pick_with_alpha_supported = TRUE;
+ priv->seen_create_pick_material_warning = FALSE;
}
/**