From 1441c971f5bb02705485be21b47475cf55767176 Mon Sep 17 00:00:00 2001 From: Vladislav Belov Date: Wed, 15 Oct 2025 00:52:21 +0200 Subject: [PATCH] Uses SDL workaround only for GL --- source/ps/VideoMode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ps/VideoMode.cpp b/source/ps/VideoMode.cpp index 8f59854cd4..6e50650388 100644 --- a/source/ps/VideoMode.cpp +++ b/source/ps/VideoMode.cpp @@ -595,7 +595,8 @@ bool CVideoMode::InitSDL() // Calling SDL_Quit twice appears to be harmless, though, and avoids the problem // by destroying the context *before* the driver's atexit hook is called. // (Note that atexit hooks are guaranteed to be called in reverse order of their registration.) - atexit(SDL_Quit); + if (m_Backend == Renderer::Backend::Backend::GL || m_Backend == Renderer::Backend::Backend::GL_ARB) + atexit(SDL_Quit); // End work around. m_IsInitialised = true;