mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 00:47:15 +00:00
Fixed compiler warnings on QNX.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user