mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
kmsdrm: unload EGL and GL lib only if using them.
This commit is contained in:
@@ -1196,6 +1196,7 @@ KMSDRM_VideoQuit(_THIS)
|
||||
viddata->max_windows = 0;
|
||||
viddata->num_windows = 0;
|
||||
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
if (_this->gl_config.driver_loaded) {
|
||||
SDL_GL_UnloadLibrary();
|
||||
}
|
||||
@@ -1208,7 +1209,7 @@ KMSDRM_VideoQuit(_THIS)
|
||||
which happens to be here.
|
||||
*/
|
||||
|
||||
#if SDL_VIDEO_OPENGL_EGL
|
||||
|
||||
SDL_EGL_UnloadLibrary(_this);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user