Commit 307eb899 authored by hybrid's avatar hybrid

Add some more tolerance for execution on IntelHD graphics cards.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3383 dfc29bdd-3216-0410-991c-e03cc46cb475
parent ba5f014c
......@@ -44,7 +44,7 @@ static bool runTestWithDriver(E_DRIVER_TYPE driverType)
driver->endScene();
bool result = takeScreenshotAndCompareAgainstReference(driver, "-drawPixel.png");
bool result = takeScreenshotAndCompareAgainstReference(driver, "-drawPixel.png", 98.81f);
device->drop();
......
......@@ -50,7 +50,7 @@ static bool shadows(video::E_DRIVER_TYPE driverType)
device->getSceneManager()->drawAll();
device->getVideoDriver()->endScene();
result = takeScreenshotAndCompareAgainstReference(device->getVideoDriver(), "-stencilSelfShadow.png", 99.91f);
result = takeScreenshotAndCompareAgainstReference(device->getVideoDriver(), "-stencilSelfShadow.png", 99.41f);
device->drop();
......
......@@ -45,11 +45,10 @@ bool terrainSceneNode(void)
driver->endScene();
// Note that this has to be a slightly fuzzier than usual compare to satisfy multiple OpenGL environments
bool result = takeScreenshotAndCompareAgainstReference(driver, "-terrainSceneNode-1.png", 98.22f);
bool result = takeScreenshotAndCompareAgainstReference(driver, "-terrainSceneNode-1.png", 97.98f);
if(!result)
{
logTestString("Small camera up rotation caused bad recalc.\n");
assert(false);
}
......@@ -60,11 +59,10 @@ bool terrainSceneNode(void)
smgr->drawAll();
driver->endScene();
result &= takeScreenshotAndCompareAgainstReference(driver, "-terrainSceneNode-2.png", 98.83f);
result &= takeScreenshotAndCompareAgainstReference(driver, "-terrainSceneNode-2.png", 98.38f);
if(!result)
{
logTestString("Large camera up rotation caused bad recalc.\n");
assert(false);
}
device->drop();
......
......@@ -39,7 +39,7 @@ bool testWithDriver(video::E_DRIVER_TYPE driverType)
smgr->drawAll();
driver->endScene();
bool result = takeScreenshotAndCompareAgainstReference(driver, "-transparentAlphaChannelRef.png", 99.88f);
bool result = takeScreenshotAndCompareAgainstReference(driver, "-transparentAlphaChannelRef.png", 99.18f);
device->drop();
......
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