소스 검색

MacOS Safari 12

sebastien 7 년 전
부모
커밋
fc14ac2ea6
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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