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