Explorar el Código

Merge pull request #5250 from sebavan/master

MacOS Safari 12
David Catuhe hace 7 años
padre
commit
45c53e8771
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/Engine/babylon.engine.ts

+ 5 - 0
src/Engine/babylon.engine.ts

@@ -1011,6 +1011,11 @@
                         this._gl = <any>(canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
                         if (this._gl) {
                             this._webGLVersion = 2.0;
+
+                            // Prevent weird browsers to lie :-)
+                            if (!this._gl.deleteQuery) {
+                                this._webGLVersion = 1.0;
+                            }
                         }
                     } catch (e) {
                         // Do nothing