Browse Source

Reverted Detector.js as Chrome's issue seems to be fixed now.

Mr.doob 14 years ago
parent
commit
754aebf84a
1 changed files with 2 additions and 12 deletions
  1. 2 12
      examples/js/Detector.js

+ 2 - 12
examples/js/Detector.js

@@ -7,10 +7,10 @@ Detector = {
 	// supported features
 
 	canvas	: !!window.CanvasRenderingContext2D,
-	webgl	: detectWebGL(),
+	webgl	: !!window.WebGLRenderingContext,
 	workers : !!window.Worker,
 	fileapi : window.File && window.FileReader && window.FileList && window.Blob,
-	
+
 	// helper methods
 
 	addGetWebGLMessage: function( parameters ) {
@@ -59,15 +59,5 @@ Detector = {
 		return message;
 
 	}
-	
 
 };
-
-function detectWebGL() {
-	
-	var c = document.createElement( "canvas" ),
-	webGLContext = c.getContext("experimental-webgl");
-	
-	return window.WebGLRenderingContext || webGLContext;
-	
-}