From: Neil Roberts Date: Thu, 11 Nov 2010 15:42:12 +0000 (+0000) Subject: CoglTexture2DSliced: Pass slice tex to callback in foreach_sub_texture X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1447ceb0deb081c85342fc3e74db3b278833cf76;p=profile%2Fivi%2Fclutter.git CoglTexture2DSliced: Pass slice tex to callback in foreach_sub_texture The cogl_texture_foreach_sub_texture_in_region virtual for the sliced texture backend was previously passing the CoglHandle of the sliced texture to the callback. Since d5634e37 the slice texture backend now works in terms of 2D textures so it's possible to pass the underlying slice texture as a handle too. This makes all of the foreach callbacks consistent in that they pass a CoglHandle of the primitive texture type that matches the GL handle. --- diff --git a/clutter/cogl/cogl/cogl-texture-2d-sliced.c b/clutter/cogl/cogl/cogl-texture-2d-sliced.c index 9a6aa0f..ef2c7d9 100644 --- a/clutter/cogl/cogl/cogl-texture-2d-sliced.c +++ b/clutter/cogl/cogl/cogl-texture-2d-sliced.c @@ -88,7 +88,7 @@ _cogl_texture_2d_sliced_foreach_cb (CoglHandle handle, virtual_coords_out[3] = (virtual_coords_in[3] * data->y_span->size + data->y_span->start) / data->tex->height; - data->callback (data->tex, + data->callback (handle, gl_handle, gl_target, slice_coords,