Browse Source

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

Vladimír Vondruš 13 years ago
parent
commit
95d689b071
  1. 2
      src/Text/GlyphCache.cpp

2
src/Text/GlyphCache.cpp

@ -72,7 +72,9 @@ void GlyphCache::initialize(const AbstractTexture::InternalFormat internalFormat
std::vector<Rectanglei> GlyphCache::reserve(const std::vector<Vector2i>& 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);
}

Loading…
Cancel
Save