Browse Source

GCC 4.4 compatibility: no std::unordered_map::reserve() here.

Vladimír Vondruš 13 years ago
parent
commit
7108db4f04
  1. 2
      src/Text/FreeTypeFont.cpp

2
src/Text/FreeTypeFont.cpp

@ -119,7 +119,9 @@ void FreeTypeFont::prerenderInternal(const std::string& characters, const Vector
const std::vector<Rectanglei> 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) {

Loading…
Cancel
Save