Jelajahi Sumber

Merge pull request #1175 from nockawa/capIntersection

Fixing rendering issue due to improper culling state
David Catuhe 9 tahun lalu
induk
melakukan
cc97364d7a
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/Canvas2d/babylon.canvas2d.ts

+ 2 - 0
src/Canvas2d/babylon.canvas2d.ts

@@ -922,6 +922,8 @@
                 this._updateOverStatus();   // TODO this._primPointerInfo may not be up to date!
             }
 
+            this.engine.setState(false, null, true, null);
+
             this._groupRender();
 
             // If the canvas is cached at canvas level, we must manually render the sprite that will display its content