Skip to content

Fix use of glXChooseFBConfig. - #43

Merged
emilio merged 1 commit into
servo:masterfrom
glennw:glxconfig
Nov 30, 2015
Merged

emilio merged 1 commit into
servo:masterfrom
glennw:glxconfig

Conversation

@glennw

@glennw glennw commented Nov 30, 2015

Copy link
Copy Markdown
Member

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

emilio commented Nov 30, 2015

Copy link
Copy Markdown
Member

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
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.

3 participants