mapbox / mapbox-gl-supported

A library to determine if a browser supports Mapbox GL JS
BSD 3-Clause "New" or "Revised" License
42 stars 17 forks source link

Always return webgl context from getWebGLContext #31

Closed msbarry closed 4 years ago

msbarry commented 4 years ago

I'm seeing some exceptions that gl.createShader is not a function, looks like it's because getWebGLContext can return a boolean, and isWebGLSupported needs it to return a webgl context.