src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 11643 273acc67dbfa
parent 11442 11413fa29401
child 11658 fbfdee28682d
equal deleted inserted replaced
11642:e081e63addd3 11643:273acc67dbfa
   520         SDL_SetError("Could not create EGL window surface");
   520         SDL_SetError("Could not create EGL window surface");
   521         goto error;
   521         goto error;
   522     }
   522     }
   523 #endif /* SDL_VIDEO_OPENGL_EGL */
   523 #endif /* SDL_VIDEO_OPENGL_EGL */
   524 
   524 
       
   525     /* Window is created, but we have yet to set up CRTC to one of the GBM buffers if we want
       
   526        drmModePageFlip to work, and we can't do it until EGL is completely setup, because we
       
   527        need to do eglSwapBuffers so we can get a valid GBM buffer object to call 
       
   528        drmModeSetCrtc on it. */
       
   529     wdata->crtc_ready = SDL_FALSE;    
       
   530 
   525     /* Setup driver data for this window */
   531     /* Setup driver data for this window */
   526     window->driverdata = wdata;
   532     window->driverdata = wdata;
   527 
   533 
   528     /* One window, it always has focus */
   534     /* One window, it always has focus */
   529     SDL_SetMouseFocus(window);
   535     SDL_SetMouseFocus(window);