Handle error return value for SDL_GetSwapInterval

This commit is contained in:
Sylvain Becker authored and GitHub committed 2023-01-01 08:20:41 -08:00
1 parent a515f51ac0
commit 8a13533949
7 files changed
+68 -17

No files matched your search

+1
View File
@@ -838,6 +838,7 @@ SDL_SetWindowBrightness and SDL_SetWindowGammaRamp have been removed from the AP
Programs which have access to shaders can implement more robust versions of those functions using custom shader code rendered as a post-process effect.
'SDL_GL_GetSwapInterval()' takes 'interval' as an output parameter and returns -1 on error.
Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
You can instead use 'SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);'