From 0f32fb4acd0835ecc24803a81a2d1a77174a920a Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Fri, 28 May 2010 18:12:53 +0100 Subject: [PATCH] cogl-texture-2d: Regenerate the mipmaps when the texture is modified When the texture is modified by cogl_texture_set_region, it wasn't setting mipmaps_dirty so it would never update the mipmaps. --- cogl/cogl-texture-2d.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/cogl-texture-2d.c b/cogl/cogl-texture-2d.c index 4ec2e0ec9..793c5cd25 100644 --- a/cogl/cogl-texture-2d.c +++ b/cogl/cogl-texture-2d.c @@ -485,6 +485,8 @@ _cogl_texture_2d_set_region (CoglTexture *tex, if (tmp_bmp_owner) g_free (tmp_bmp.data); + tex_2d->mipmaps_dirty = TRUE; + return TRUE; }