cogl/texture: Drop set_auto_mipmap vfunc

As it is only relavant for 2D textures.
Allows getting rid of the is-primitive property which was enforcing only 2D textures
can use the set_auto_mipmap function.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4200>
This commit is contained in:
Bilal Elmoussaoui
2024-12-29 17:31:41 +01:00
committed by Marge Bot
parent f613c82ab5
commit 4ee657e31f
11 changed files with 24 additions and 60 deletions

View File

@ -193,7 +193,7 @@ set_auto_mipmap_cb (CoglTexture *sub_texture,
const float *meta_coords,
void *user_data)
{
cogl_texture_set_auto_mipmap (sub_texture, FALSE);
cogl_texture_2d_set_auto_mipmap (COGL_TEXTURE_2D (sub_texture), FALSE);
}
CoglTexture *