瀏覽代碼

Removed string concat for texture allocation

David Catuhe 8 年之前
父節點
當前提交
ed5c9cd5d6

文件差異過大導致無法顯示
+ 14 - 14
dist/preview release/babylon.core.js


文件差異過大導致無法顯示
+ 1478 - 1477
dist/preview release/babylon.d.ts


文件差異過大導致無法顯示
+ 18 - 18
dist/preview release/babylon.js


文件差異過大導致無法顯示
+ 7 - 6
dist/preview release/babylon.max.js


文件差異過大導致無法顯示
+ 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);
         }