2008-02-07 Matthew Allum <mallum@openedhand.com>
* clutter/pango/pangoclutter-render.c: Warn if requested glyph is too big for underlying texture cache. (see #666)
This commit is contained in:
parent
3185947520
commit
b1615f01a4
@ -1,3 +1,9 @@
|
|||||||
|
2008-02-07 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
|
* clutter/pango/pangoclutter-render.c:
|
||||||
|
Warn if requested glyph is too big for underlying texture cache.
|
||||||
|
(see #666)
|
||||||
|
|
||||||
2008-02-07 Matthew Allum <mallum@openedhand.com>
|
2008-02-07 Matthew Allum <mallum@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-texture.c: (texture_upload_data):
|
* clutter/clutter-texture.c: (texture_upload_data):
|
||||||
|
@ -78,8 +78,6 @@ tc_clear ()
|
|||||||
first_texture = next;
|
first_texture = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("freeing textures\n");
|
|
||||||
|
|
||||||
++tc_generation;
|
++tc_generation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -358,6 +356,12 @@ draw_glyph (PangoRenderer *renderer_,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bm.height > TC_HEIGHT)
|
||||||
|
{
|
||||||
|
g_warning ("%s: Glyph too large for cache, increase TC_HEIGHT",
|
||||||
|
G_STRLOC);
|
||||||
|
}
|
||||||
|
|
||||||
if (g)
|
if (g)
|
||||||
g->generation = tc_generation;
|
g->generation = tc_generation;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user