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