Reuse the layers list

Instead of getting the layers list twice from the Material, we
can reuse the list when we need to retrieve the first layer.
This commit is contained in:
Emmanuele Bassi 2009-01-28 11:56:12 +00:00
parent 670b35ddf0
commit 8dca5c73bc

View File

@ -2668,7 +2668,7 @@ _cogl_rectangles_with_multitexture_coords (
CoglHandle first_layer, tex_handle; CoglHandle first_layer, tex_handle;
CoglTexture *texture; CoglTexture *texture;
first_layer = cogl_material_get_layers (material)->data; first_layer = layers->data;
tex_handle = cogl_material_layer_get_texture (first_layer); tex_handle = cogl_material_layer_get_texture (first_layer);
texture = _cogl_texture_pointer_from_handle (tex_handle); texture = _cogl_texture_pointer_from_handle (tex_handle);
_cogl_texture_sliced_quad (texture, _cogl_texture_sliced_quad (texture,