Created
August 14, 2017 16:12
-
-
Save Samsy/8da51b266b7424772545913d8cea03da to your computer and use it in GitHub Desktop.
webgltest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function webgl_support() { | |
try{ | |
var canvas = document.createElement( 'canvas' ); | |
return !! window.WebGLRenderingContext && ( | |
canvas.getContext( 'webgl' ) || canvas.getContext( 'experimental-webgl' ) ); | |
}catch( e ) { return false; } | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment