src/video/kmsdrm/SDL_kmsdrmopengles.c
changeset 11190 478630f6b756
parent 11181 951807bdae20
child 11342 0b924e560249
equal deleted inserted replaced
11189:8a23ac7134d2 11190:478630f6b756
   100     /* } else {
   100     /* } else {
   101         SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Locked GBM surface %p", (void *)wdata->next_bo); */
   101         SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "Locked GBM surface %p", (void *)wdata->next_bo); */
   102     }
   102     }
   103 
   103 
   104     fb_info = KMSDRM_FBFromBO(_this, wdata->next_bo);
   104     fb_info = KMSDRM_FBFromBO(_this, wdata->next_bo);
       
   105     if (fb_info == NULL) {
       
   106         return 0;
       
   107     }
   105     if (_this->egl_data->egl_swapinterval == 0) {
   108     if (_this->egl_data->egl_swapinterval == 0) {
   106         /* Swap buffers instantly, possible tearing */
   109         /* Swap buffers instantly, possible tearing */
   107         /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "drmModeSetCrtc(%d, %u, %u, 0, 0, &%u, 1, &%ux%u@%u)",
   110         /* SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "drmModeSetCrtc(%d, %u, %u, 0, 0, &%u, 1, &%ux%u@%u)",
   108             vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id, vdata->saved_conn_id,
   111             vdata->drm_fd, displaydata->crtc_id, fb_info->fb_id, vdata->saved_conn_id,
   109             displaydata->cur_mode.hdisplay, displaydata->cur_mode.vdisplay, displaydata->cur_mode.vrefresh); */
   112             displaydata->cur_mode.hdisplay, displaydata->cur_mode.vdisplay, displaydata->cur_mode.vrefresh); */