瀏覽代碼

Remove references to _boundTexturesCache and _activeChannel

Popov72 4 年之前
父節點
當前提交
da9e12d949
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      src/Engines/webgpuEngine.ts

+ 0 - 7
src/Engines/webgpuEngine.ts

@@ -1666,7 +1666,6 @@ export class WebGPUEngine extends Engine {
 
             // Video
             if ((<VideoTexture>texture).video) {
-                this._activeChannel = channel;
                 (<VideoTexture>texture).update();
             } else if (texture.delayLoadState === Constants.DELAYLOADSTATE_NOTLOADED) { // Delay loading
                 texture.delayLoad();
@@ -1761,10 +1760,6 @@ export class WebGPUEngine extends Engine {
     public bindSamplers(effect: Effect): void { }
 
     public _bindTextureDirectly(target: number, texture: InternalTexture, forTextureDataUpdate = false, force = false): boolean {
-        if (this._boundTexturesCache[this._activeChannel] !== texture) {
-            this._boundTexturesCache[this._activeChannel] = texture;
-            return true;
-        }
         return false;
     }
 
@@ -1778,8 +1773,6 @@ export class WebGPUEngine extends Engine {
             texture._associatedChannel = channel;
         }
 
-        this._activeChannel = channel;
-
         this._setInternalTexture(name, texture);
     }