GraphicsWindow: remove extraneous checkpoints
This commit is contained in:
@@ -448,8 +448,6 @@ void GraphicsWindow::DestroyGraphicsWindow()
|
|||||||
g_HDC = nullptr;
|
g_HDC = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOINT;
|
|
||||||
|
|
||||||
if( g_hWndMain != nullptr )
|
if( g_hWndMain != nullptr )
|
||||||
{
|
{
|
||||||
DestroyWindow( g_hWndMain );
|
DestroyWindow( g_hWndMain );
|
||||||
@@ -457,16 +455,12 @@ void GraphicsWindow::DestroyGraphicsWindow()
|
|||||||
CrashHandler::SetForegroundWindow( g_hWndMain );
|
CrashHandler::SetForegroundWindow( g_hWndMain );
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOINT;
|
|
||||||
|
|
||||||
if( g_hIcon != nullptr )
|
if( g_hIcon != nullptr )
|
||||||
{
|
{
|
||||||
DestroyIcon( g_hIcon );
|
DestroyIcon( g_hIcon );
|
||||||
g_hIcon = nullptr;
|
g_hIcon = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOINT;
|
|
||||||
|
|
||||||
MSG msg;
|
MSG msg;
|
||||||
while( PeekMessage( &msg, nullptr, 0, 0, PM_NOREMOVE ) )
|
while( PeekMessage( &msg, nullptr, 0, 0, PM_NOREMOVE ) )
|
||||||
{
|
{
|
||||||
@@ -475,8 +469,6 @@ void GraphicsWindow::DestroyGraphicsWindow()
|
|||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
DispatchMessage( &msg );
|
DispatchMessage( &msg );
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECKPOINT;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicsWindow::Initialize( bool bD3D )
|
void GraphicsWindow::Initialize( bool bD3D )
|
||||||
|
|||||||
Reference in New Issue
Block a user