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.
This commit is contained in:
parent
4c1a12d824
commit
0f32fb4acd
@ -485,6 +485,8 @@ _cogl_texture_2d_set_region (CoglTexture *tex,
|
|||||||
if (tmp_bmp_owner)
|
if (tmp_bmp_owner)
|
||||||
g_free (tmp_bmp.data);
|
g_free (tmp_bmp.data);
|
||||||
|
|
||||||
|
tex_2d->mipmaps_dirty = TRUE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user