src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 13672 389ce8cfa2a3
parent 13592 3ff45857428d
child 13696 ea20a7434b98
equal deleted inserted replaced
13671:769f80095217 13672:389ce8cfa2a3
   389     SDL_DisplayData *dispdata = (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
   389     SDL_DisplayData *dispdata = (SDL_DisplayData *) SDL_GetDisplayForWindow(window)->driverdata;
   390     Uint32 width = dispdata->mode.hdisplay;
   390     Uint32 width = dispdata->mode.hdisplay;
   391     Uint32 height = dispdata->mode.vdisplay;
   391     Uint32 height = dispdata->mode.vdisplay;
   392     Uint32 surface_fmt = GBM_FORMAT_XRGB8888;
   392     Uint32 surface_fmt = GBM_FORMAT_XRGB8888;
   393     Uint32 surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
   393     Uint32 surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
       
   394 #if SDL_VIDEO_OPENGL_EGL
   394     EGLContext egl_context;
   395     EGLContext egl_context;
       
   396 #endif
   395 
   397 
   396     if (!KMSDRM_gbm_device_is_format_supported(viddata->gbm, surface_fmt, surface_flags)) {
   398     if (!KMSDRM_gbm_device_is_format_supported(viddata->gbm, surface_fmt, surface_flags)) {
   397         SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway.");
   399         SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway.");
   398     }
   400     }
   399 
   401