2
0
Takahiro 7 жил өмнө
parent
commit
3f0dfd9f1f
1 өөрчлөгдсөн 13 нэмэгдсэн , 0 устгасан
  1. 13 0
      examples/js/Detector.js

+ 13 - 0
examples/js/Detector.js

@@ -18,6 +18,19 @@ var Detector = {
 
 		}
 
+	} )(),
+	webgl2: ( function () {
+
+		try {
+
+			var canvas = document.createElement( 'canvas' ); return !! ( window.WebGL2RenderingContext && ( canvas.getContext( 'webgl2' ) ) );
+
+		} catch ( e ) {
+
+			return false;
+
+		}
+
 	} )(),
 	workers: !! window.Worker,
 	fileapi: window.File && window.FileReader && window.FileList && window.Blob,