[clutter-texture] Fix the no_slice property
authorNeil Roberts <neil@linux.intel.com>
Thu, 5 Feb 2009 20:00:05 +0000 (20:00 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 5 Feb 2009 20:29:25 +0000 (20:29 +0000)
The 'no_slice' property means the texture should never be sliced. We
want cogl to create a texture with any amount of waste so we pass
max_waste as -1. However this got broken in commit 168d55 so that the
meaning got negated (no_slice enabled slicing).

clutter/clutter-texture.c

index bd05456..dda5f67 100644 (file)
@@ -1539,7 +1539,7 @@ clutter_texture_async_load_complete (ClutterTexture *self,
 
   if (error == NULL)
     {
-      if (priv->no_slice)
+      if (!priv->no_slice)
         waste = priv->max_tile_waste;
 
       if (priv->filter_quality == CLUTTER_TEXTURE_QUALITY_HIGH)
@@ -1744,7 +1744,7 @@ clutter_texture_set_from_file (ClutterTexture *texture,
       return clutter_texture_async_load (texture, error);
     }
 
-  if (priv->no_slice)
+  if (!priv->no_slice)
     max_waste = priv->max_tile_waste;
 
   if (priv->filter_quality == CLUTTER_TEXTURE_QUALITY_HIGH)