We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3326

Summary: Cannot identify errors with SDL_GL_GetSwapInterval
Product: SDL Reporter: Intellectual Kitty <IntellectualKitty>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: philipp.wiesemann
Version: 2.0.4   
Hardware: All   
OS: All   

Description Intellectual Kitty 2016-05-09 06:57:32 UTC
SDL_GL_SetSwapInterval allows -1 as a legitimate value in order to specify "late swap tearing."  This means that SDL_GL_GetSwapInterval should also be able to return -1 as a legitimate value, but, unfortunately, -1 can also be returned in case of error.  This makes it difficult or impossible to determine which case is which.
Comment 1 Philipp Wiesemann 2016-05-11 21:11:15 UTC
SDL_GL_GetSwapInterval() returns 0 in case of an error (the wiki was outdated).

However, this still does not solve the problem. :)
Comment 2 Intellectual Kitty 2016-05-12 17:07:57 UTC
No one uses a swap interval of 0 anymore.  That's just so 2015. :)