diff --git a/src/Text/FreeTypeFont.cpp b/src/Text/FreeTypeFont.cpp index a073006df..5fd3bda84 100644 --- a/src/Text/FreeTypeFont.cpp +++ b/src/Text/FreeTypeFont.cpp @@ -119,7 +119,9 @@ void FreeTypeFont::prerenderInternal(const std::string& characters, const Vector const std::vector charPositions = TextureTools::atlas(atlasSize, charSizes, padding); /* Render all characters to the atlas and create character map */ + #ifndef CORRADE_GCC44_COMPATIBILITY glyphs.reserve(charPositions.size()); + #endif unsigned char* pixmap = new unsigned char[atlasSize.product()](); Image2D image(atlasSize, Image2D::Format::Red, Image2D::Type::UnsignedByte, pixmap); for(std::size_t i = 0; i != charPositions.size(); ++i) {