|
@@ -6177,7 +6177,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- private _boundUniforms: { [key: number]: WebGLUniformLocation } = {};
|
|
|
|
|
|
+ protected _boundUniforms: { [key: number]: WebGLUniformLocation } = {};
|
|
|
|
|
|
/**
|
|
/**
|
|
* Binds an effect to the webGL context
|
|
* Binds an effect to the webGL context
|
|
@@ -6430,7 +6430,7 @@
|
|
return this._gl.REPEAT;
|
|
return this._gl.REPEAT;
|
|
}
|
|
}
|
|
|
|
|
|
- private _setTexture(channel: number, texture: Nullable<BaseTexture>, isPartOfTextureArray = false, depthStencilTexture = false): boolean {
|
|
|
|
|
|
+ protected _setTexture(channel: number, texture: Nullable<BaseTexture>, isPartOfTextureArray = false, depthStencilTexture = false): boolean {
|
|
// Not ready?
|
|
// Not ready?
|
|
if (!texture) {
|
|
if (!texture) {
|
|
if (this._boundTexturesCache[channel] != null) {
|
|
if (this._boundTexturesCache[channel] != null) {
|
|
@@ -6554,6 +6554,8 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ this._boundUniforms[channel] = uniform;
|
|
|
|
+
|
|
if (!this._textureUnits || this._textureUnits.length !== textures.length) {
|
|
if (!this._textureUnits || this._textureUnits.length !== textures.length) {
|
|
this._textureUnits = new Int32Array(textures.length);
|
|
this._textureUnits = new Int32Array(textures.length);
|
|
}
|
|
}
|