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_
|
#endif // #ifdef _IRR_COMPILE_WITH_OPENGL_
|
||||||
|
|
||||||
// Reset fullscreen resolution change
|
|
||||||
switchToFullscreen(true);
|
|
||||||
|
|
||||||
if (SoftwareImage)
|
if (SoftwareImage)
|
||||||
XDestroyImage(SoftwareImage);
|
XDestroyImage(SoftwareImage);
|
||||||
|
|
||||||
if (!ExternalWindow)
|
if (!ExternalWindow)
|
||||||
{
|
{
|
||||||
XDestroyWindow(display,window);
|
XDestroyWindow(display,window);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset fullscreen resolution change
|
||||||
|
switchToFullscreen(true);
|
||||||
|
|
||||||
|
if (!ExternalWindow)
|
||||||
|
{
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user