src/video/pandora/SDL_pandora.c
changeset 10690 23a825f341e6
parent 10208 49c460371a4a
child 10737 3406a0f8b041
     1.1 --- a/src/video/pandora/SDL_pandora.c	Fri Dec 09 01:29:52 2016 -0800
     1.2 +++ b/src/video/pandora/SDL_pandora.c	Fri Dec 09 01:47:43 2016 -0800
     1.3 @@ -774,15 +774,14 @@
     1.4      return ((SDL_VideoData *) _this->driverdata)->swapinterval;
     1.5  }
     1.6  
     1.7 -void
     1.8 +int
     1.9  PND_gl_swapwindow(_THIS, SDL_Window * window)
    1.10  {
    1.11      SDL_VideoData *phdata = (SDL_VideoData *) _this->driverdata;
    1.12      SDL_WindowData *wdata = (SDL_WindowData *) window->driverdata;
    1.13  
    1.14      if (phdata->egl_initialized != SDL_TRUE) {
    1.15 -        SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
    1.16 -        return;
    1.17 +        return SDL_SetError("PND: GLES initialization failed, no OpenGL ES support");
    1.18      }
    1.19  
    1.20      /* Many applications do not uses glFinish(), so we call it for them */
    1.21 @@ -792,6 +791,7 @@
    1.22      eglWaitGL();
    1.23  
    1.24      eglSwapBuffers(phdata->egl_display, wdata->gles_surface);
    1.25 +    return 0;
    1.26  }
    1.27  
    1.28  void