src/video/pandora/SDL_pandora.c
changeset 3685 64ce267332c6
parent 3500 4b594623401b
child 3697 f7b03b6838cb
equal deleted inserted replaced
3684:cc564f08884f 3685:64ce267332c6
   415 PND_gl_createcontext(_THIS, SDL_Window * window)
   415 PND_gl_createcontext(_THIS, SDL_Window * window)
   416 {
   416 {
   417     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
   417     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
   418     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
   418     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
   419     SDL_DisplayData *didata =
   419     SDL_DisplayData *didata =
   420         (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata;
   420         (SDL_DisplayData *) window->display->driverdata;
   421     EGLBoolean status;
   421     EGLBoolean status;
   422     int32_t gfstatus;
   422     int32_t gfstatus;
   423     EGLint configs;
   423     EGLint configs;
   424     uint32_t attr_pos;
   424     uint32_t attr_pos;
   425     EGLint attr_value;
   425     EGLint attr_value;
   814 PND_gl_swapwindow(_THIS, SDL_Window * window)
   814 PND_gl_swapwindow(_THIS, SDL_Window * window)
   815 {
   815 {
   816     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
   816     SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
   817     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
   817     SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
   818     SDL_DisplayData *didata =
   818     SDL_DisplayData *didata =
   819         (SDL_DisplayData *) SDL_GetDisplayFromWindow(window)->driverdata;
   819         (SDL_DisplayData *) window->display->driverdata;
   820 
   820 
   821 
   821 
   822     if (phdata->egl_initialized != SDL_TRUE) {
   822     if (phdata->egl_initialized != SDL_TRUE) {
   823         SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
   823         SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
   824         return;
   824         return;