src/video/kmsdrm/SDL_kmsdrmvideo.c
changeset 12376 cfc65d4d49ae
parent 12310 18f3294b230e
child 12440 2b450a35f471
equal deleted inserted replaced
12375:d9a16c76d8d1 12376:cfc65d4d49ae
   585     if (!_this->egl_data) {
   585     if (!_this->egl_data) {
   586         if (SDL_GL_LoadLibrary(NULL) < 0) {
   586         if (SDL_GL_LoadLibrary(NULL) < 0) {
   587             goto error;
   587             goto error;
   588         }
   588         }
   589     }
   589     }
       
   590     SDL_EGL_SetRequiredVisualId(_this, surface_fmt);
   590     wdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) wdata->gs);
   591     wdata->egl_surface = SDL_EGL_CreateSurface(_this, (NativeWindowType) wdata->gs);
   591 
   592 
   592     if (wdata->egl_surface == EGL_NO_SURFACE) {
   593     if (wdata->egl_surface == EGL_NO_SURFACE) {
   593         SDL_SetError("Could not create EGL window surface");
   594         SDL_SetError("Could not create EGL window surface");
   594         goto error;
   595         goto error;