X11: Don't call any X11 functions on fatal error

If X11 functions are called after a fatal error then it just triggers the fatal
error handler again eventually leading to stack overflow.
This commit is contained in:
phantom10111
2024-05-11 09:46:26 -07:00
committed by teejusb
parent 3f8a7f5fd3
commit bbf556450d
4 changed files with 10 additions and 2 deletions
@@ -92,6 +92,9 @@ LowLevelWindow_X11::LowLevelWindow_X11()
LowLevelWindow_X11::~LowLevelWindow_X11()
{
if( FatalError )
return;
// Reset the display
if( !m_bWasWindowed )
{