Procházet zdrojové kódy

Fix texture wrapping binding

sebavan před 5 roky
rodič
revize
06277ee0f8
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  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);
         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;
         }
         }