Remove invalid optimization in renderer.

This commit is contained in:
Hermann Kraus 2012-08-05 01:15:31 +02:00
parent f20e90a524
commit 3d336f4306

View file

@ -95,7 +95,8 @@ void composite_bitmap(T & pixmap, FT_Bitmap *bitmap, unsigned rgba, int x, int y
template <typename T> template <typename T>
void text_renderer<T>::render(glyph_positions_ptr pos) void text_renderer<T>::render(glyph_positions_ptr pos)
{ {
if (glyphs_.empty()) prepare_glyphs(pos); glyphs_.clear();
prepare_glyphs(pos);
FT_Error error; FT_Error error;
FT_Vector start; FT_Vector start;
unsigned height = pixmap_.height(); unsigned height = pixmap_.height();