Don't destroy the external window.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3232 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2010-02-25 09:03:17 +00:00
parent 8796542e05
commit 16ef2e5e7d
1 changed files with 2 additions and 1 deletions

View File

@ -903,7 +903,8 @@ 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);
DestroyWindow(HWnd); if (ExternalWindow)
DestroyWindow(HWnd);
Close=true; Close=true;
} }