David Catuhe 8 years ago
parent
commit
8394b41b20

File diff suppressed because it is too large
+ 6943 - 6943
dist/preview release/babylon.d.ts


File diff suppressed because it is too large
+ 32 - 32
dist/preview release/babylon.js


+ 7 - 2
dist/preview release/babylon.max.js

@@ -8289,7 +8289,9 @@ var BABYLON;
         Engine.prototype.restoreDefaultFramebuffer = function () {
             this._currentRenderTarget = null;
             this.bindUnboundFramebuffer(null);
-            this.setViewport(this._cachedViewport);
+            if (this._cachedViewport) {
+                this.setViewport(this._cachedViewport);
+            }
             this.wipeCaches();
         };
         // UBOs
@@ -44098,6 +44100,9 @@ var BABYLON;
         };
         PostProcess.prototype.updateEffect = function (defines, uniforms, samplers, indexParameters, onCompiled, onError) {
             this._effect = this._engine.createEffect({ vertex: this._vertexUrl, fragment: this._fragmentUrl }, ["position"], uniforms || this._parameters, samplers || this._samplers, defines !== undefined ? defines : "", null, onCompiled, onError, indexParameters || this._indexParameters);
+            if (onCompiled && this._effect.isReady()) {
+                onCompiled(this._effect);
+            }
         };
         PostProcess.prototype.isReusable = function () {
             return this._reusable;
@@ -66852,7 +66857,6 @@ var BABYLON;
         TextureTools.CreateResizedCopy = function (texture, width, height) {
             var rtt = new BABYLON.RenderTargetTexture('resized' + texture.name, { width: width, height: height }, scene, !texture.noMipmap, true, texture._texture.type, false, texture._samplingMode, false);
             var scene = texture.getScene();
-            rtt.anisotropicFilteringLevel = texture.anisotropicFilteringLevel;
             rtt.wrapU = texture.wrapU;
             rtt.wrapV = texture.wrapV;
             rtt.uOffset = texture.uOffset;
@@ -66873,6 +66877,7 @@ var BABYLON;
                 scene.postProcessManager.directRender([passPostProcess], rtt.getInternalTexture());
                 scene.getEngine().restoreDefaultFramebuffer();
                 rtt.disposeFramebufferObjects();
+                passPostProcess.dispose();
             });
             return rtt;
         };

File diff suppressed because it is too large
+ 6944 - 6944
dist/preview release/babylon.module.d.ts


File diff suppressed because it is too large
+ 33 - 33
dist/preview release/babylon.worker.js