소스 검색

Improved fix for chrome M63 webgl2 bug

David Catuhe 7 년 전
부모
커밋
481d0e8a3a
2개의 변경된 파일3143개의 추가작업 그리고 3143개의 파일을 삭제
  1. 3139 3139
      dist/preview release/babylon.d.ts
  2. 4 4
      src/Engine/babylon.engine.ts

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 3139 - 3139
dist/preview release/babylon.d.ts


+ 4 - 4
src/Engine/babylon.engine.ts

@@ -309,8 +309,8 @@
      * The engine class is responsible for interfacing with all lower-level APIs such as WebGL and Audio.
      */
     export class Engine {
-        /** Use this array to turn off WebGL2 on known buggy browsers version */
-        public static WebGL2ExceptionList = ["Chrome/63"];
+        /** Use this array to turn off some WebGL2 features on known buggy browsers version */
+        public static WebGL2UniformBuffersExceptionList = ["Chrome/63"];
 
         public static Instances = new Array<Engine>();
 
@@ -883,9 +883,9 @@
                     if (navigator && navigator.userAgent) {
                         let ua = navigator.userAgent;
 
-                        for (var exception of Engine.WebGL2ExceptionList) {
+                        for (var exception of Engine.WebGL2UniformBuffersExceptionList) {
                             if (ua.indexOf(exception) > -1) {
-                                options.disableWebGL2Support = true;
+                                this.disableUniformBuffers = true;
                                 break;
                             }
                         }