First destroy the window, then restore resolution.
This may solve some possible issues with WM fullscreen.
This commit is contained in:
parent
7fbe529e6f
commit
d45429bf88
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user