mirror of
https://github.com/encounter/SDL.git
synced 2025-12-14 07:36:09 +00:00
Fixed ABI, don't change the return type of SDL_GL_SwapWindow()
This commit is contained in:
@@ -3390,20 +3390,22 @@ SDL_GL_GetSwapInterval(void)
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
void
|
||||
SDL_GL_SwapWindow(SDL_Window * window)
|
||||
{
|
||||
CHECK_WINDOW_MAGIC(window,-1);
|
||||
CHECK_WINDOW_MAGIC(window,);
|
||||
|
||||
if (!(window->flags & SDL_WINDOW_OPENGL)) {
|
||||
return SDL_SetError("The specified window isn't an OpenGL window");
|
||||
SDL_SetError("The specified window isn't an OpenGL window");
|
||||
return;
|
||||
}
|
||||
|
||||
if (SDL_GL_GetCurrentWindow() != window) {
|
||||
return SDL_SetError("The specified window has not been made current");
|
||||
SDL_SetError("The specified window has not been made current");
|
||||
return;
|
||||
}
|
||||
|
||||
return _this->GL_SwapWindow(_this, window);
|
||||
_this->GL_SwapWindow(_this, window);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user