Browse Source

Text: test with inserting a non-zero glyph and one that is in bounds.

Not sure how this assertion even fired before since it's just replacing
the default invalid glyph.
pull/168/head
Vladimír Vondruš 3 years ago
parent
commit
ebe15db906
  1. 2
      src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp

2
src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp

@ -143,7 +143,7 @@ void AbstractGlyphCacheTest::reserveIncremental() {
DummyGlyphCache cache{{24, 20}, {1, 2}};
/* insert() is what triggers the assert, not reserve() alone */
cache.insert(0, {3, 5}, {{10, 10}, {23, 45}});
cache.insert(34, {3, 5}, {{10, 10}, {23, 10}});
std::ostringstream out;
Error redirectError{&out};

Loading…
Cancel
Save