Browse Source

Removed string concat for texture allocation

David Catuhe 8 năm trước cách đây
mục cha
commit
ed5c9cd5d6

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


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


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


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 7 - 6
dist/preview release/babylon.max.js


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


+ 1 - 1
src/babylon.engine.ts

@@ -2795,7 +2795,7 @@
                 return;
             }
 
-            this.activateTexture(this._gl["TEXTURE" + channel]);
+            this.activateTexture(this._gl.TEXTURE0 + channel);
             this._bindTextureDirectly(this._gl.TEXTURE_2D, texture);
         }