src/video/kmsdrm/SDL_kmsdrmopengles.c
changeset 11190 478630f6b756
parent 11181 951807bdae20
child 11342 0b924e560249
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmopengles.c	Sat Aug 05 22:10:25 2017 +0200
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmopengles.c	Sat Aug 05 22:10:36 2017 +0200
     1.3 @@ -102,6 +102,9 @@
     1.4      }
     1.5  
     1.6      fb_info = KMSDRM_FBFromBO(_this, wdata->next_bo);
     1.7 +    if (fb_info == NULL) {
     1.8 +        return 0;
     1.9 +    }
    1.10      if (_this->egl_data->egl_swapinterval == 0) {
    1.11          /* Swap buffers instantly, possible tearing */
    1.12          /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "drmModeSetCrtc(%d, %u, %u, 0, 0, &%u, 1, &%ux%u@%u)",