Minor fix to cogl material
authorNeil Roberts <neil@linux.intel.com>
Thu, 19 Nov 2009 16:07:38 +0000 (16:07 +0000)
committerNeil Roberts <neil@linux.intel.com>
Mon, 23 Nov 2009 18:36:59 +0000 (18:36 +0000)
_cogl_material_get_layer expects a CoglMaterial* pointer but it was
being called with a CoglHandle. This doesn't matter because the
CoglHandle is actually just the CoglMaterial* pointer anyway but it
breaks the ability to change the _cogl_material_pointer_from_handle
macro.

clutter/cogl/cogl/cogl-material.c

index 7ac8340..1f0ed06 100644 (file)
@@ -772,7 +772,7 @@ cogl_material_set_layer (CoglHandle material_handle,
 
   material = _cogl_material_pointer_from_handle (material_handle);
 
-  layer = _cogl_material_get_layer (material_handle, layer_index, TRUE);
+  layer = _cogl_material_get_layer (material, layer_index, TRUE);
 
   if (texture_handle == layer->texture)
     return;