Removed unnecessary null pointer checks in Window.cpp

Fixes #532
This commit is contained in:
Jan Haller 2014-02-19 15:33:10 +01:00
parent 83ea194f07
commit 79134ba665

View File

@ -144,19 +144,13 @@ void Window::create(WindowHandle handle, const ContextSettings& settings)
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
void Window::close() void Window::close()
{ {
if (m_context)
{
// Delete the context // Delete the context
delete m_context; delete m_context;
m_context = NULL; m_context = NULL;
}
if (m_impl)
{
// Delete the window implementation // Delete the window implementation
delete m_impl; delete m_impl;
m_impl = NULL; m_impl = NULL;
}
// Update the fullscreen window // Update the fullscreen window
if (this == fullscreenWindow) if (this == fullscreenWindow)