浏览代码

Fix issue with texture optim when gl was used externally

David Catuhe 7 年之前
父节点
当前提交
2b84c3c86d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Engine/babylon.engine.ts

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

@@ -1347,7 +1347,7 @@
         public resetTextureCache() {
             for (var key in this._boundTexturesCache) {
                 let boundTexture = this._boundTexturesCache[key];
-                if (boundTexture) {
+                if (!this.disableTextureBindingOptimization && boundTexture) {
                     this._removeDesignatedSlot(boundTexture);
                 }
                 this._boundTexturesCache[key] = null;