Skip to content

Fix gl::Context::create() crash on MSW with default RendererGl options#2404

Merged
andrewfb merged 1 commit intocinder:masterfrom
andrewfb:mswGlVer
Mar 20, 2026
Merged

Fix gl::Context::create() crash on MSW with default RendererGl options#2404
andrewfb merged 1 commit intocinder:masterfrom
andrewfb:mswGlVer

Conversation

@andrewfb
Copy link
Collaborator

RendererGl defaults to version (0,0) on Windows meaning "highest available", but this literal 0.0 was stored in PlatformData::mVersion. createSharedContext() passes it to wglCreateContextAttribsARB, which fails and crashes. Query the actual GL version after context creation when the requested version is (0,0).

RendererGl defaults to version (0,0) on Windows meaning "highest
available", but this literal 0.0 was stored in PlatformData::mVersion.
createSharedContext() passes it to wglCreateContextAttribsARB, which
fails and crashes. Query the actual GL version after context creation
when the requested version is (0,0).
@andrewfb andrewfb merged commit f90f332 into cinder:master Mar 20, 2026
8 checks passed
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