Skip to content

OpenGL attributes and window creation #823

@capehill

Description

@capehill

According to SDL2 documentation, OpenGL attributes should be set before window creation:
https://wiki.libsdl.org/SDL2/SDL_GL_SetAttribute

However, version attributes are set after window creation here:

SDL_GL_SetAttribute( SDL_GL_CONTEXT_PROFILE_MASK, contexts[type].profileMask );

I don't know if this causes problems on any major systems, but for example on AmigaOS 4, OpenGL library is selected based these attributes so this doesn't work properly if version is set afterwards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions