src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 13672 389ce8cfa2a3
parent 13592 3ff45857428d
child 13696 ea20a7434b98
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Tue Mar 24 10:05:51 2020 -0700
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Wed Mar 25 09:38:45 2020 -0700
     1.3 @@ -391,7 +391,9 @@
     1.4      Uint32 height = dispdata->mode.vdisplay;
     1.5      Uint32 surface_fmt = GBM_FORMAT_XRGB8888;
     1.6      Uint32 surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
     1.7 +#if SDL_VIDEO_OPENGL_EGL
     1.8      EGLContext egl_context;
     1.9 +#endif
    1.10  
    1.11      if (!KMSDRM_gbm_device_is_format_supported(viddata->gbm, surface_fmt, surface_flags)) {
    1.12          SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway.");