Explorar o código

REmoved webgl2 as extensions seem to be an issue

David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
b5da34f1e3
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      src/babylon.engine.ts

+ 8 - 8
src/babylon.engine.ts

@@ -532,14 +532,14 @@
             var renderToHalfFloat = this._canRenderToHalfFloatTexture();
 
             // GL
-            try {
-               this._gl = <WebGLRenderingContext>(canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
-               if (this._gl) {
-                   this._webGLVersion = "2.0";
-               }
-            } catch (e) {
-               // Do nothing
-            }
+            // try {
+            //    this._gl = <WebGLRenderingContext>(canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
+            //    if (this._gl) {
+            //        this._webGLVersion = "2.0";
+            //    }
+            // } catch (e) {
+            //    // Do nothing
+            // }
 
             if (!this._gl) {
                 if (!canvas) {