mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
kmsdrm: unload EGL and GL lib only if using them.
This commit is contained in:
parent
9b43464d81
commit
fe3f97961b
@ -794,8 +794,8 @@ KMSDRM_DestroyOldSurfaces(_THIS)
|
|||||||
|
|
||||||
/* Destroy the old GBM surface and buffers. */
|
/* Destroy the old GBM surface and buffers. */
|
||||||
if (dispdata->old_bo) {
|
if (dispdata->old_bo) {
|
||||||
KMSDRM_gbm_surface_release_buffer(dispdata->old_gs, dispdata->old_bo);
|
KMSDRM_gbm_surface_release_buffer(dispdata->old_gs, dispdata->old_bo);
|
||||||
dispdata->old_bo = NULL;
|
dispdata->old_bo = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dispdata->old_next_bo) {
|
if (dispdata->old_next_bo) {
|
||||||
@ -1196,6 +1196,7 @@ KMSDRM_VideoQuit(_THIS)
|
|||||||
viddata->max_windows = 0;
|
viddata->max_windows = 0;
|
||||||
viddata->num_windows = 0;
|
viddata->num_windows = 0;
|
||||||
|
|
||||||
|
#if SDL_VIDEO_OPENGL_EGL
|
||||||
if (_this->gl_config.driver_loaded) {
|
if (_this->gl_config.driver_loaded) {
|
||||||
SDL_GL_UnloadLibrary();
|
SDL_GL_UnloadLibrary();
|
||||||
}
|
}
|
||||||
@ -1208,7 +1209,7 @@ KMSDRM_VideoQuit(_THIS)
|
|||||||
which happens to be here.
|
which happens to be here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if SDL_VIDEO_OPENGL_EGL
|
|
||||||
SDL_EGL_UnloadLibrary(_this);
|
SDL_EGL_UnloadLibrary(_this);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user