SDL_GL_SwapWindow() returns an error code

This commit is contained in:
Sylvain authored and Sam Lantinga committed 2022-12-29 08:40:51 -08:00
1 parent abd051f89e
commit 88630b85f5
7 files changed
+12 -14

No files matched your search

+4 -1
View File
@@ -2013,9 +2013,12 @@ extern DECLSPEC int SDLCALL SDL_GL_GetSwapInterval(void);
*
* \param window the window to change
*
* \returns 0 on success or a negative error code on failure; call
* SDL_GetError() for more information.
*
* \since This function is available since SDL 3.0.0.
*/
extern DECLSPEC void SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
extern DECLSPEC int SDLCALL SDL_GL_SwapWindow(SDL_Window * window);
/**
* Delete an OpenGL context.