Skip to content

Commit

Permalink
Merge commit '4acd1dcad41d154093ca14eb0adf35f4f99bd06a' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 23, 2021
2 parents f68ba3c + 4acd1dc commit 4b0b39a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/kmsdrm/SDL_kmsdrmvideo.c
Expand Up @@ -1088,7 +1088,7 @@ KMSDRM_DestroyWindow(_THIS, SDL_Window *window)
KMSDRM_DestroySurfaces(_this, window);

/* Unload library and deinit GBM, but only if this is the last remaining window.*/
if (viddata->num_windows < 2) {
if ((viddata->num_windows - 1) == 0) {

/* Unload EGL/GL library and free egl_data. */
if (_this->egl_data) {
Expand Down

0 comments on commit 4b0b39a

Please sign in to comment.