mirror of
https://github.com/encounter/SDL.git
synced 2025-12-20 18:29:22 +00:00
Fixed a bunch of SwapWindow calls that needed their return value updated
This commit is contained in:
@@ -54,14 +54,16 @@ Wayland_GLES_CreateContext(_THIS, SDL_Window * window)
|
||||
return context;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
Wayland_GLES_SwapWindow(_THIS, SDL_Window *window)
|
||||
{
|
||||
SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface);
|
||||
if (SDL_EGL_SwapBuffers(_this, ((SDL_WindowData *) window->driverdata)->egl_surface) < 0) {
|
||||
return -1;
|
||||
}
|
||||
WAYLAND_wl_display_flush( ((SDL_VideoData*)_this->driverdata)->display );
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
Wayland_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@ typedef struct SDL_PrivateGLESData
|
||||
|
||||
extern int Wayland_GLES_LoadLibrary(_THIS, const char *path);
|
||||
extern SDL_GLContext Wayland_GLES_CreateContext(_THIS, SDL_Window * window);
|
||||
extern void Wayland_GLES_SwapWindow(_THIS, SDL_Window * window);
|
||||
extern int Wayland_GLES_SwapWindow(_THIS, SDL_Window * window);
|
||||
extern int Wayland_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
|
||||
extern void Wayland_GLES_DeleteContext(_THIS, SDL_GLContext context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user