From 4b10cfbed35afc24ba3670316fca8198d0c2c5bd Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Mon, 30 Nov 2015 14:48:48 +1000 Subject: [PATCH] Fix use of glXChooseFBConfig. 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. --- src/platform/with_glx/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/with_glx/utils.rs b/src/platform/with_glx/utils.rs index 9588ac0..448d91c 100644 --- a/src/platform/with_glx/utils.rs +++ b/src/platform/with_glx/utils.rs @@ -60,7 +60,7 @@ pub fn create_offscreen_pixmap_backed_context(size: Size2D) -> Result