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.