From bad7782ab4bc0b5a96d8a97b9b32d5726343b1c2 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 26 Aug 2009 18:24:48 +0100 Subject: [PATCH] Fix the documentation for clutter_texture_set_cogl_material The documentation was a copy of the docs for set_cogl_texture so it was somewhat broken. --- clutter/clutter-texture.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c index ecab42b82..d57f716e2 100644 --- a/clutter/clutter-texture.c +++ b/clutter/clutter-texture.c @@ -1292,9 +1292,14 @@ clutter_texture_get_cogl_material (ClutterTexture *texture) * @texture: A #ClutterTexture * @cogl_material: A CoglHandle for a material * - * Replaces the underlying COGL texture drawn by this actor with - * @cogl_tex. A reference to the texture is taken so if the handle is - * no longer needed it should be deref'd with cogl_handle_unref. + * Replaces the underlying Cogl material drawn by this actor with + * @cogl_material. A reference to the material is taken so if the + * handle is no longer needed it should be deref'd with + * cogl_handle_unref. Texture data is attached to the material so + * calling this function also replaces the Cogl + * texture. #ClutterTexture requires that the material have a texture + * layer so you should set one on the material before calling this + * function. * * Since: 0.8 *