|
@@ -3113,15 +3113,15 @@ export class ThinEngine {
|
|
const target = this._getTextureTarget(texture);
|
|
const target = this._getTextureTarget(texture);
|
|
|
|
|
|
if (wrapU) {
|
|
if (wrapU) {
|
|
- this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_S, this._getTextureWrapMode(wrapU));
|
|
|
|
|
|
+ this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_S, this._getTextureWrapMode(wrapU), texture);
|
|
texture._cachedWrapU = wrapU;
|
|
texture._cachedWrapU = wrapU;
|
|
}
|
|
}
|
|
if (wrapV) {
|
|
if (wrapV) {
|
|
- this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_T, this._getTextureWrapMode(wrapV));
|
|
|
|
|
|
+ this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_T, this._getTextureWrapMode(wrapV), texture);
|
|
texture._cachedWrapV = wrapV;
|
|
texture._cachedWrapV = wrapV;
|
|
}
|
|
}
|
|
if (wrapR) {
|
|
if (wrapR) {
|
|
- this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_R, this._getTextureWrapMode(wrapR));
|
|
|
|
|
|
+ this._setTextureParameterInteger(target, this._gl.TEXTURE_WRAP_R, this._getTextureWrapMode(wrapR), texture);
|
|
texture._cachedWrapR = wrapR;
|
|
texture._cachedWrapR = wrapR;
|
|
}
|
|
}
|
|
|
|
|