Commit 87aae4f7 authored by hybrid's avatar hybrid

Relax screenshot test for loaded scene. Due to the animator start the scene...

Relax screenshot test for loaded scene. Due to the animator start the scene looks different each time.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3823 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d79c5132
...@@ -94,7 +94,10 @@ static bool loadScene(void) ...@@ -94,7 +94,10 @@ static bool loadScene(void)
{ {
smgr->drawAll(); smgr->drawAll();
driver->endScene(); driver->endScene();
result = takeScreenshotAndCompareAgainstReference(driver, "-loadScene.png", 98.91f); // we need to be very sloppy, because the animators will produce a different
// start depending on the actual loading time. 97% seems to be safe, as removing
// an object produces values around 95%
result = takeScreenshotAndCompareAgainstReference(driver, "-loadScene.png", 97.4f);
if (!result) if (!result)
logTestString("Rendering the loaded scene failed.\n"); logTestString("Rendering the loaded scene failed.\n");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment