mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[ts][phaser-v4] Prevent Spine game object to clear webgl. See #3008.
This commit is contained in:
parent
65d7d4b8fe
commit
875c06caea
@ -364,7 +364,7 @@ export class SpineGameObject extends DepthMixin(
|
||||
if (newType) {
|
||||
// Ensure framebuffer is properly set up.
|
||||
if (drawingContext.renderer.renderNodes.currentBatchDrawingContext !== drawingContext) {
|
||||
drawingContext.use();
|
||||
drawingContext.renderer.renderNodes.finishBatch();
|
||||
drawingContext.beginDraw();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user