From 3aac180dc72a19cad86989ce13ca8d9b26aff179 Mon Sep 17 00:00:00 2001 From: cutealien Date: Wed, 30 Mar 2022 16:54:46 +0000 Subject: [PATCH] Print out colorformat when screenshot test fails git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6325 dfc29bdd-3216-0410-991c-e03cc46cb475 --- tests/screenshot.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/screenshot.cpp b/tests/screenshot.cpp index ed58ded..3900959 100644 --- a/tests/screenshot.cpp +++ b/tests/screenshot.cpp @@ -125,6 +125,10 @@ static bool testShotsOfShots(video::E_DRIVER_TYPE type) name += irr::core::stringc((int)aa); name += ".png"; result = takeScreenshotAndCompareAgainstReference(driver, name.c_str()); + if ( !result ) + { + logTestString("driver color format: %s\n", video::ColorFormatNames[driver->getColorFormat()]); + } } else {