Browse Source

Fixed wbgl2.d.ts desc

David Catuhe 8 năm trước cách đây
mục cha
commit
2716f09725
4 tập tin đã thay đổi với 12665 bổ sung15705 xóa
  1. 6332 7291
      dist/preview release/babylon.d.ts
  2. 6332 7291
      dist/preview release/babylon.module.d.ts
  3. 1 1
      src/babylon.engine.ts
  4. 0 1122
      src/babylon.webgl2.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6332 - 7291
dist/preview release/babylon.d.ts


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 6332 - 7291
dist/preview release/babylon.module.d.ts


+ 1 - 1
src/babylon.engine.ts

@@ -644,7 +644,7 @@
             // GL
             if (!options.disableWebGL2Support) {
                 try {
-                    this._gl = <WebGL2RenderingContext>(canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
+                    this._gl = <any>(canvas.getContext("webgl2", options) || canvas.getContext("experimental-webgl2", options));
                     if (this._gl) {
                         this._webGLVersion = 2.0;
                     }

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1122
src/babylon.webgl2.ts