From dbfc1453620891a6703ac877b0a552d99e52f2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 1 Oct 2019 13:21:19 +0200 Subject: [PATCH] DebugTools: copypaste oops, so this wasn't testing the correct thing. --- src/Magnum/DebugTools/Test/CompareImageTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/DebugTools/Test/CompareImageTest.cpp b/src/Magnum/DebugTools/Test/CompareImageTest.cpp index 998a61245..3e1eb5db1 100644 --- a/src/Magnum/DebugTools/Test/CompareImageTest.cpp +++ b/src/Magnum/DebugTools/Test/CompareImageTest.cpp @@ -1254,7 +1254,7 @@ void CompareImageTest::pixelsToImage() { /* No diagnostic as there's no error */ TestSuite::Comparator compare{40.0f, 20.0f}; - CORRADE_COMPARE(compare(ActualRgb, ExpectedRgb), TestSuite::ComparisonStatusFlags{}); + CORRADE_COMPARE(compare(ActualRgb.pixels(), ExpectedRgb), TestSuite::ComparisonStatusFlags{}); } void CompareImageTest::pixelsToImageError() { @@ -1288,7 +1288,7 @@ void CompareImageTest::pixelsToFile() { /* No diagnostic as there's no error */ TestSuite::Comparator compare{&*_importerManager, nullptr, 40.0f, 20.0f}; - CORRADE_COMPARE(compare(ActualRgb, Utility::Directory::join(DEBUGTOOLS_TEST_DIR, "CompareImageExpected.tga")), + CORRADE_COMPARE(compare(ActualRgb.pixels(), Utility::Directory::join(DEBUGTOOLS_TEST_DIR, "CompareImageExpected.tga")), TestSuite::ComparisonStatusFlags{}); }