projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0c7437
)
cogl-texture-2d: Regenerate the mipmaps when the texture is modified
author
Neil Roberts
<neil@linux.intel.com>
Fri, 28 May 2010 17:12:53 +0000
(18:12 +0100)
committer
Neil Roberts
<neil@linux.intel.com>
Fri, 28 May 2010 17:13:53 +0000
(18:13 +0100)
When the texture is modified by cogl_texture_set_region, it wasn't
setting mipmaps_dirty so it would never update the mipmaps.
clutter/cogl/cogl/cogl-texture-2d.c
patch
|
blob
|
history
diff --git
a/clutter/cogl/cogl/cogl-texture-2d.c
b/clutter/cogl/cogl/cogl-texture-2d.c
index
4ec2e0e
..
793c5cd
100644
(file)
--- a/
clutter/cogl/cogl/cogl-texture-2d.c
+++ b/
clutter/cogl/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;
}