Commit 5fdbe503 authored by hybrid's avatar hybrid

Last updates for proper window closing after a test has run.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3499 dfc29bdd-3216-0410-991c-e03cc46cb475
parent cfd8e941
...@@ -18,13 +18,20 @@ static bool testLineRendering(video::E_DRIVER_TYPE type) ...@@ -18,13 +18,20 @@ static bool testLineRendering(video::E_DRIVER_TYPE type)
video::IVideoDriver* driver = device->getVideoDriver(); video::IVideoDriver* driver = device->getVideoDriver();
// if no AntiAliasing supported, skip this test // if no AntiAliasing supported, skip this test
if (driver->getDriverAttributes().getAttributeAsInt("AntiAlias")<2) if (driver->getDriverAttributes().getAttributeAsInt("AntiAlias")<2)
{
device->closeDevice();
device->run();
device->drop();
return true; return true;
}
scene::ISceneManager* smgr = device->getSceneManager(); scene::ISceneManager* smgr = device->getSceneManager();
scene::IAnimatedMesh* mesh = smgr->getMesh("../media/sydney.md2"); scene::IAnimatedMesh* mesh = smgr->getMesh("../media/sydney.md2");
if (!mesh) if (!mesh)
{ {
device->closeDevice();
device->run();
device->drop(); device->drop();
return false; return false;
} }
......
...@@ -53,6 +53,8 @@ static bool viewPortText(E_DRIVER_TYPE driverType) ...@@ -53,6 +53,8 @@ static bool viewPortText(E_DRIVER_TYPE driverType)
bool result = takeScreenshotAndCompareAgainstReference(driver, "-viewPortText.png", 99.77f); bool result = takeScreenshotAndCompareAgainstReference(driver, "-viewPortText.png", 99.77f);
device->closeDevice();
device->run();
device->drop(); device->drop();
return result; return result;
......
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