Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shading language version detection when using WebGL
WebGL doesn't follow the OpenGL standard format for the glGetString(GL_SHADING_LANGUAGE_VERSION) return value. Chrome for example will return "OpenGL ES GLSL ES 3.00 (WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium))", which does not start with the version number as the standard suggests. This fix will simply cut off any text preceding the first digit found in the string, if any.
- Loading branch information