Fixed compiler warnings on QNX.

This commit is contained in:
Ryan C. Gordon
2017-07-23 19:25:16 -04:00
parent 67754af887
commit 03eaddcad4
3 changed files with 11 additions and 65 deletions

View File

@@ -227,13 +227,15 @@ glSetSwapInterval(_THIS, int interval)
/**
* Swaps the EGL buffers associated with the given window
* @param _THIS
* @paran window Window to swap buffers for
* @param window Window to swap buffers for
* @return 0 if successful, -1 on error
*/
void
int
glSwapWindow(_THIS, SDL_Window *window)
{
/* !!! FIXME: should we migrate this all over to use SDL_egl.c? */
window_impl_t *impl = (window_impl_t *)window->driverdata;
eglSwapBuffers(egl_disp, impl->surface);
return eglSwapBuffers(egl_disp, impl->surface) == EGL_TRUE ? 0 : -1;
}
/**

View File

@@ -40,7 +40,7 @@ extern int glLoadLibrary(_THIS, const char *name);
void *glGetProcAddress(_THIS, const char *proc);
extern SDL_GLContext glCreateContext(_THIS, SDL_Window *window);
extern int glSetSwapInterval(_THIS, int interval);
extern void glSwapWindow(_THIS, SDL_Window *window);
extern int glSwapWindow(_THIS, SDL_Window *window);
extern int glMakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
extern void glDeleteContext(_THIS, SDL_GLContext context);
extern void glUnloadLibrary(_THIS);