1
0
Fork 0

cogl/texture: Expose Texture.get_context

Would be useful for next commit

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3977>
This commit is contained in:
Bilal Elmoussaoui 2024-08-20 22:27:41 +02:00
parent 75c7ced752
commit 5f5448b180
2 changed files with 8 additions and 3 deletions

View file

@ -328,9 +328,6 @@ void
_cogl_texture_copy_internal_format (CoglTexture *src,
CoglTexture *dest);
CoglContext *
cogl_texture_get_context (CoglTexture *texture);
CoglTextureLoader *
cogl_texture_get_loader (CoglTexture *texture);

View file

@ -474,4 +474,12 @@ cogl_texture_set_auto_mipmap (CoglTexture *texture,
COGL_EXPORT CoglPixelFormat
cogl_texture_get_format (CoglTexture *texture);
/**
* cogl_texture_get_context:
*
* Returns: (transfer none): The associated %CoglContext
*/
COGL_EXPORT CoglContext *
cogl_texture_get_context (CoglTexture *texture);
G_END_DECLS