mirror of
https://github.com/encounter/SDL.git
synced 2025-12-18 01:15:24 +00:00
Fixed bug 3513 - SDL_GL_SwapWindow does not return error status
Return an error code from SDL_GL_SwapWindow(), like the other SDL APIs.
This commit is contained in:
@@ -31,12 +31,12 @@
|
||||
|
||||
#include "SDL_mirdyn.h"
|
||||
|
||||
void
|
||||
int
|
||||
MIR_GL_SwapWindow(_THIS, SDL_Window* window)
|
||||
{
|
||||
MIR_Window* mir_wind = window->driverdata;
|
||||
|
||||
SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
|
||||
return SDL_EGL_SwapBuffers(_this, mir_wind->egl_surface);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define MIR_GL_GetSwapInterval SDL_EGL_GetSwapInterval
|
||||
#define MIR_GL_SetSwapInterval SDL_EGL_SetSwapInterval
|
||||
|
||||
extern void
|
||||
extern int
|
||||
MIR_GL_SwapWindow(_THIS, SDL_Window* window);
|
||||
|
||||
extern int
|
||||
|
||||
Reference in New Issue
Block a user