Skip to content

Commit 93fcd3f

Browse files
committed
1.2.1
1 parent f15d9cc commit 93fcd3f

4 files changed

+9
-3
lines changed

dist/display-list-watcher.es.js

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ class DisplayListWatcher extends Phaser.Plugins.ScenePlugin {
199199
this.camera.setBounds(0, 0, POSITIVE_INFINITY, this.text.height);
200200
this.camera.preRender();
201201
this.renderText(renderer, this.text, this.camera);
202+
if (renderer.type === Phaser.WEBGL) {
203+
renderer.flush();
204+
}
202205
}
203206
destroy() {
204207
this.stop();

dist/display-list-watcher.umd.js

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@
202202
this.camera.setBounds(0, 0, POSITIVE_INFINITY, this.text.height);
203203
this.camera.preRender();
204204
this.renderText(renderer, this.text, this.camera);
205+
if (renderer.type === Phaser.WEBGL) {
206+
renderer.flush();
207+
}
205208
}
206209
destroy() {
207210
this.stop();

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phaser-plugin-display-list-watcher",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Shows the scene display lists",
55
"keywords": [
66
"phaser",

0 commit comments

Comments
 (0)