From 8213e3bf54b9f917d50e15db1b5672fabf2b7287 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 5 Apr 2025 13:09:47 +0200 Subject: [PATCH] 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. --- src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp b/src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp index f5e7b7a22..669023110 100644 --- a/src/Magnum/Text/Test/AbstractGlyphCacheTest.cpp +++ b/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};