Browse Source

Removed gl.generateMipmaps from createRenderTargetTexture since it's generating mipmaps of blank texture (and mipmaps are generated for the framebuffer color attachment elsewhere)

George Corney (STR Limited) 8 years ago
parent
commit
6e0bbfe51a
1 changed files with 0 additions and 4 deletions
  1. 0 4
      src/babylon.engine.ts

+ 0 - 4
src/babylon.engine.ts

@@ -2349,10 +2349,6 @@
             }
             gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture, 0);
 
-            if (generateMipMaps) {
-                this._gl.generateMipmap(this._gl.TEXTURE_2D);
-            }
-
             // Unbind
             this._bindTextureDirectly(gl.TEXTURE_2D, null);
             gl.bindRenderbuffer(gl.RENDERBUFFER, null);