Explorar o código

Optim unpackflip y cache across frames

sebastien %!s(int64=7) %!d(string=hai) anos
pai
achega
247cf8121b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/Engine/babylon.engine.ts

+ 2 - 1
src/Engine/babylon.engine.ts

@@ -3875,7 +3875,6 @@
                 return;
             }
             this._currentEffect = null;
-            this._unpackFlipYCached = null;
             this._viewportCached.x = 0;
             this._viewportCached.y = 0;
             this._viewportCached.z = 0;
@@ -3889,6 +3888,8 @@
                 this._depthCullingState.reset();
                 this.setDepthFunctionToLessOrEqual();
                 this._alphaState.reset();
+
+                this._unpackFlipYCached = null;
             }
 
             this._resetVertexBufferBinding();