diff --git a/src/Text/GlyphCache.cpp b/src/Text/GlyphCache.cpp index ad6c81aee..c46af37e0 100644 --- a/src/Text/GlyphCache.cpp +++ b/src/Text/GlyphCache.cpp @@ -72,7 +72,9 @@ void GlyphCache::initialize(const AbstractTexture::InternalFormat internalFormat std::vector GlyphCache::reserve(const std::vector& sizes) { CORRADE_ASSERT(glyphs.empty(), "Text::GlyphCache::reserve(): reserving space in non-empty cache is not yet implemented", {}); + #ifndef CORRADE_GCC44_COMPATIBILITY glyphs.reserve(glyphs.size() + sizes.size()); + #endif return TextureTools::atlas(_size, sizes, _padding); }