src/video/x11/SDL_x11opengles.c
changeset 6817 93103b719488
parent 6791 c19c5232439d
child 6885 700f1b25f77f
equal deleted inserted replaced
6816:b3d3ef1e15b5 6817:93103b719488
   353 int
   353 int
   354 X11_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
   354 X11_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
   355 {
   355 {
   356     int retval;
   356     int retval;
   357 
   357 
   358 //    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   358 /*
   359 //    Display *display = data->videodata->display;
   359     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
       
   360     Display *display = data->videodata->display;
       
   361 */
   360 
   362 
   361     if (!_this->gles_data) {
   363     if (!_this->gles_data) {
   362         SDL_SetError("OpenGL not initialized");
   364         SDL_SetError("OpenGL not initialized");
   363         return -1;
   365         return -1;
   364     }
   366     }
   369                                           _this->gles_data->egl_surface,
   371                                           _this->gles_data->egl_surface,
   370                                           _this->gles_data->egl_context)) {
   372                                           _this->gles_data->egl_context)) {
   371         SDL_SetError("Unable to make EGL context current");
   373         SDL_SetError("Unable to make EGL context current");
   372         retval = -1;
   374         retval = -1;
   373     }
   375     }
   374 //    XSync(display, False);
   376 
       
   377 /*
       
   378     XSync(display, False);
       
   379 */
   375 
   380 
   376     return (retval);
   381     return (retval);
   377 }
   382 }
   378 
   383 
   379 int
   384 int