소스 검색

Don't apply state before clear()

Scott Ramsby 7 년 전
부모
커밋
3b2077fcee
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/Engine/babylon.engine.ts

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

@@ -1902,8 +1902,6 @@
          * @param stencil defines if the stencil buffer must be cleared
          */
         public clear(color: Nullable<Color4>, backBuffer: boolean, depth: boolean, stencil: boolean = false): void {
-            this.applyStates();
-
             var mode = 0;
             if (backBuffer && color) {
                 this._gl.clearColor(color.r, color.g, color.b, color.a !== undefined ? color.a : 1.0);