Skip to content

Cannot identify errors with SDL_GL_GetSwapInterval #2158

@SDLBugzilla

Description

@SDLBugzilla

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.4
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2016-05-09 06:57:32 +0000, Intellectual Kitty wrote:

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.

On 2016-05-11 21:11:15 +0000, Philipp Wiesemann wrote:

SDL_GL_GetSwapInterval() returns 0 in case of an error (the wiki was outdated).

However, this still does not solve the problem. :)

On 2016-05-12 17:07:57 +0000, Intellectual Kitty wrote:

No one uses a swap interval of 0 anymore. That's just so 2015. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions