mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Uses SDL workaround only for GL
This commit is contained in:
parent
f2752f7230
commit
1441c971f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue