Skip to content

opengl: set viewport size to window size#126

Open
mardy wants to merge 1 commit intodevkitPro:ogc-sdl-2.28from
mardy:opengl-viewport
Open

opengl: set viewport size to window size#126
mardy wants to merge 1 commit intodevkitPro:ogc-sdl-2.28from
mardy:opengl-viewport

Conversation

@mardy
Copy link
Copy Markdown
Collaborator

@mardy mardy commented Apr 9, 2026

The OpenGL specification says that the initial values for the OpenGL viewport should match the window size.

Without this, SDL OpenGL programs that don't call glViewport will only show a black screen.

The OpenGL specification says that the initial values for the OpenGL
viewport should match the window size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant