瀏覽代碼

Optim unpackflip y cache across frames

sebastien 7 年之前
父節點
當前提交
247cf8121b
共有 1 個文件被更改,包括 2 次插入1 次删除
  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();