提交 32cf8fc5 编写于 作者: M Mr.doob

Added getContext( 'webgl' ) check in Detector.

https://bugzilla.mozilla.org/show_bug.cgi?id=912606
上级 6db87abc
......@@ -6,7 +6,7 @@
var Detector = {
canvas: !! window.CanvasRenderingContext2D,
webgl: ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
webgl: ( function () { try { var canvas = document.createElement( 'canvas' ); return !! window.WebGLRenderingContext && !! canvas.getContext( 'webgl' ) && !! canvas.getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(),
workers: !! window.Worker,
fileapi: window.File && window.FileReader && window.FileList && window.Blob,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册