Skip to content

Commit a508cb2

Browse files
gl.flush, for some mobile and macbook devices
1 parent 3508394 commit a508cb2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/rpg_core/Graphics.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ Graphics.render = function(stage) {
163163
var startTime = Date.now();
164164
if (stage) {
165165
this._renderer.render(stage);
166+
if (this._renderer.gl && this._renderer.gl.flush) {
167+
this._renderer.gl.flush();
168+
}
166169
}
167170
var endTime = Date.now();
168171
var elapsed = endTime - startTime;

0 commit comments

Comments
 (0)