From 5f5448b180346ec1d6e1c9f7e740e6ce0d243cc0 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 20 Aug 2024 22:27:41 +0200 Subject: [PATCH] cogl/texture: Expose Texture.get_context Would be useful for next commit Part-of: --- cogl/cogl/cogl-texture-private.h | 3 --- cogl/cogl/cogl-texture.h | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cogl/cogl/cogl-texture-private.h b/cogl/cogl/cogl-texture-private.h index 410f692db..5e3c52a79 100644 --- a/cogl/cogl/cogl-texture-private.h +++ b/cogl/cogl/cogl-texture-private.h @@ -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); diff --git a/cogl/cogl/cogl-texture.h b/cogl/cogl/cogl-texture.h index 5e3f00ef5..b042edf52 100644 --- a/cogl/cogl/cogl-texture.h +++ b/cogl/cogl/cogl-texture.h @@ -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