فهرست منبع

Fix _bindTexture on cube map

sebavan 5 سال پیش
والد
کامیت
0a99c63c31
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/Engines/thinEngine.ts

+ 2 - 1
src/Engines/thinEngine.ts

@@ -3471,7 +3471,8 @@ export class ThinEngine {
         }
 
         this._activeChannel = channel;
-        this._bindTextureDirectly(this._gl.TEXTURE_2D, texture);
+        const target = texture ? this._getTextureTarget(texture) : this._gl.TEXTURE_2D;
+        this._bindTextureDirectly(target, texture);
     }
 
     /**