Relax test a bit. Minor example cleanup.

Invisible difference, probably some mip-mapping pixel.
Getting rid of some unnecessary global in example 14


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6297 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2022-01-22 16:42:12 +00:00
parent 0fb6891267
commit 42c0b17435
4 changed files with 7 additions and 8 deletions

@ -201,7 +201,7 @@ int main()
*/ */
int lastFPS = -1; int lastFPS = -1;
// In order to do framerate independent movement, we have to know // In order to do frame rate independent movement, we have to know
// how long it was since the last frame // how long it was since the last frame
u32 then = device->getTimer()->getTime(); u32 then = device->getTimer()->getTime();

@ -25,7 +25,6 @@ using namespace irr;
#endif #endif
HWND hOKButton; HWND hOKButton;
HWND hWnd;
static LRESULT CALLBACK CustomWndProc(HWND hWnd, UINT message, static LRESULT CALLBACK CustomWndProc(HWND hWnd, UINT message,
WPARAM wParam, LPARAM lParam) WPARAM wParam, LPARAM lParam)
@ -103,7 +102,7 @@ int main()
int windowWidth = 440; int windowWidth = 440;
int windowHeight = 380; int windowHeight = 380;
hWnd = CreateWindow( Win32ClassName, __TEXT("Irrlicht Win32 window example"), HWND hWnd = CreateWindow( Win32ClassName, __TEXT("Irrlicht Win32 window example"),
style, 100, 100, windowWidth, windowHeight, style, 100, 100, windowWidth, windowHeight,
NULL, NULL, hInstance, NULL); NULL, NULL, hInstance, NULL);

@ -77,7 +77,7 @@ bool testGeometryCreator(void)
{ {
smgr->drawAll(); smgr->drawAll();
driver->endScene(); driver->endScene();
result = takeScreenshotAndCompareAgainstReference(driver, "-testGeometryCreator.png", 99.994f); result = takeScreenshotAndCompareAgainstReference(driver, "-testGeometryCreator.png", 99.989f);
} }
smgr->clear(); smgr->clear();

@ -1,4 +1,4 @@
Tests finished. 72 tests of 72 passed. Tests finished. 72 tests of 72 passed.
Compiled as DEBUG Compiled as DEBUG
Test suite pass at GMT Thu Jan 6 13:59:44 2022 Test suite pass at GMT Sat Jan 22 16:40:25 2022