Don't destroy the external window.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3232 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
8796542e05
commit
16ef2e5e7d
|
@ -903,6 +903,7 @@ void CIrrDeviceWin32::closeDevice()
|
||||||
PeekMessage(&msg, NULL, WM_QUIT, WM_QUIT, PM_REMOVE);
|
PeekMessage(&msg, NULL, WM_QUIT, WM_QUIT, PM_REMOVE);
|
||||||
PostQuitMessage(0);
|
PostQuitMessage(0);
|
||||||
PeekMessage(&msg, NULL, WM_QUIT, WM_QUIT, PM_REMOVE);
|
PeekMessage(&msg, NULL, WM_QUIT, WM_QUIT, PM_REMOVE);
|
||||||
|
if (ExternalWindow)
|
||||||
DestroyWindow(HWnd);
|
DestroyWindow(HWnd);
|
||||||
Close=true;
|
Close=true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue