I am building drfrag's legacy branch on my X86_64 desktop GNU/Linux system against latest SDL2 running on Xorg+OpenGL/GLES, and I get this on exit, and the GZdoom process gets stuck there, it never gets to quit unless I manually kill it:
Code: Select all
*** Fatal Error ***
I have noticed that it only happens with SDL2 when it's built without desktop OpenGL support, wich forces SDL2 to use the "opengles2" or "opengles" renderers (note I am talking about the SDL2 renderer, not the GZDoom one).
Since GZDoom should not care about what renderer is SDL2 using, my guess is that it's trying to free something on quit that shouldn't be freed in GLES but only on desktop OpenGL.
Strangely enough, forcing a GLES renderer on an SDL2 built with desktop OpenGL support using this:
Code: Select all
SDL_HINT_RENDER_DRIVER="opengles2" ./gzdoom
Building SDL2 without OpenGL support is as easy as configuring with:
Code: Select all
./configure --enable-video-opengles --disable-video-opengl