mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
cogl-texture: Remove the gl_handle from CoglTextureSliceCallback
There's no longer any need to use the GL handle in the callback for _cogl_texture_foreach_sub_texture_in_region because it can now work in terms of primitive cogl textures so it has now been removed. This would be helpful if we ever want to make the foreach function public so that apps could implement their own primitives using sliced textures.
This commit is contained in:
@ -156,8 +156,6 @@ typedef struct _CoglSubTextureForeachData
|
||||
|
||||
static void
|
||||
_cogl_sub_texture_foreach_cb (CoglHandle handle,
|
||||
GLuint gl_handle,
|
||||
GLenum gl_target,
|
||||
const float *slice_coords,
|
||||
const float *full_virtual_coords,
|
||||
void *user_data)
|
||||
@ -175,7 +173,7 @@ _cogl_sub_texture_foreach_cb (CoglHandle handle,
|
||||
&virtual_coords[2],
|
||||
&virtual_coords[3]);
|
||||
|
||||
data->callback (handle, gl_handle, gl_target,
|
||||
data->callback (handle,
|
||||
slice_coords, virtual_coords,
|
||||
data->user_data);
|
||||
}
|
||||
|
Reference in New Issue
Block a user