src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 11643 273acc67dbfa
parent 11442 11413fa29401
child 11658 fbfdee28682d
     1.1 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c	Fri Oct 20 16:53:42 2017 -0700
     1.2 +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c	Sat Oct 21 04:20:57 2017 -0700
     1.3 @@ -522,6 +522,12 @@
     1.4      }
     1.5  #endif /* SDL_VIDEO_OPENGL_EGL */
     1.6  
     1.7 +    /* Window is created, but we have yet to set up CRTC to one of the GBM buffers if we want
     1.8 +       drmModePageFlip to work, and we can't do it until EGL is completely setup, because we
     1.9 +       need to do eglSwapBuffers so we can get a valid GBM buffer object to call 
    1.10 +       drmModeSetCrtc on it. */
    1.11 +    wdata->crtc_ready = SDL_FALSE;    
    1.12 +
    1.13      /* Setup driver data for this window */
    1.14      window->driverdata = wdata;
    1.15