Created
May 24, 2014 15:21
-
-
Save alkrauss48/2d3cf7ba7d10732f7b01 to your computer and use it in GitHub Desktop.
Full Test for WebGL Support
This file contains 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