Browse Source

Text: fix test for an AbstractGlyphCache 2D fallback assertion.

The test was accidentally a completel copypaste of the above one, so it
didn't verify the other assertion that happens only with 2D caches.
pull/674/head
Vladimír Vondruš 1 year ago
parent
commit
8213e3bf54
  1. 7
      src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp

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

@ -1933,12 +1933,7 @@ void AbstractGlyphCacheTest::setProcessedImagePassthrough2DNotImplemented() {
GlyphCacheFeatures doFeatures() const override {
return GlyphCacheFeature::ImageProcessing;
}
/* The 2D variant shouldn't be called on an array cache */
void doSetProcessedImage(const Vector2i&, const ImageView2D&) override {
CORRADE_FAIL("This should not be called");
}
} cache{PixelFormat::R32F, {1024, 512, 8}};
} cache{PixelFormat::R32F, {1024, 512}};
Containers::String out;
Error redirectError{&out};

Loading…
Cancel
Save