Преглед изворни кода

Fixed unbind multirendertarget

When generating mipmaps with MRT, `forTextureDataUpdate` in `_bindTextureDirectly` should be true
Benjamin Guignabert пре 5 година
родитељ
комит
cc7f142a3c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Engines/Extensions/engine.multiRender.ts

+ 1 - 1
src/Engines/Extensions/engine.multiRender.ts

@@ -76,7 +76,7 @@ ThinEngine.prototype.unBindMultiColorAttachmentFramebuffer = function(textures:
     for (var i = 0; i < textures.length; i++) {
         var texture = textures[i];
         if (texture.generateMipMaps && !disableGenerateMipMaps && !texture.isCube) {
-            this._bindTextureDirectly(gl.TEXTURE_2D, texture);
+            this._bindTextureDirectly(gl.TEXTURE_2D, texture, true);
             gl.generateMipmap(gl.TEXTURE_2D);
             this._bindTextureDirectly(gl.TEXTURE_2D, null);
         }