瀏覽代碼

Fix texture wrapping binding

sebavan 5 年之前
父節點
當前提交
06277ee0f8
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/Engines/thinEngine.ts

+ 3 - 3
src/Engines/thinEngine.ts

@@ -3113,15 +3113,15 @@ export class ThinEngine {
         const target = this._getTextureTarget(texture);
 
         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;
         }
         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;
         }
         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;
         }