First destroy the window, then restore resolution.

This may solve some possible issues with WM fullscreen.
This commit is contained in:
Deve 2014-08-15 11:34:16 +02:00
parent 7fbe529e6f
commit d45429bf88

View File

@ -185,15 +185,19 @@ CIrrDeviceLinux::~CIrrDeviceLinux()
}
#endif // #ifdef _IRR_COMPILE_WITH_OPENGL_
// Reset fullscreen resolution change
switchToFullscreen(true);
if (SoftwareImage)
XDestroyImage(SoftwareImage);
if (!ExternalWindow)
{
XDestroyWindow(display,window);
}
// Reset fullscreen resolution change
switchToFullscreen(true);
if (!ExternalWindow)
{
XCloseDisplay(display);
}
}