Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix use of glXChooseFBConfig. #43

Merged
merged 1 commit into from Nov 30, 2015
Merged

Fix use of glXChooseFBConfig. #43

merged 1 commit into from Nov 30, 2015

Conversation

@glennw
Copy link
Member

glennw commented Nov 30, 2015

Based on https://www.opengl.org/sdk/docs/man2/xhtml/glXChooseFBConfig.xml
the last parameter of the attributes array must be None (which == 0).

Confusingly, this is different from GLX_NONE, which is non-zero.

This fixes webgl context creation on some drivers, in particular nVidia proprietary drivers but probably others too.

Based on https://www.opengl.org/sdk/docs/man2/xhtml/glXChooseFBConfig.xml
the last parameter of the attributes array must be None (which == 0).

Confusingly, this is different from GLX_NONE, which is non-zero.

This fixes webgl context creation on some drivers, in particular nVidia proprietary drivers but probably others too.
@emilio
Copy link
Member

emilio commented Nov 30, 2015

Wow, good catch.

I found this GLX_NONE/None behaviour completely surprising, and this explains Servo's buildbots crashing... Probably Mesa drivers do ignore invalid attributes while nvidia's reject them...

Thanks! :)

emilio added a commit that referenced this pull request Nov 30, 2015
Fix use of glXChooseFBConfig.
@emilio emilio merged commit 3984245 into servo:master Nov 30, 2015
1 check failed
1 check failed
continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.