Fixed ABI, don't change the return type of SDL_GL_SwapWindow()

This commit is contained in:
Sam Lantinga
2016-12-11 12:01:44 -08:00
parent 6211668e9f
commit 8414c3d4ae
3 changed files with 9 additions and 7 deletions

View File

@@ -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