mirror of
https://github.com/gre/gl-react.git
synced 2026-01-25 16:43:36 +00:00
Fix a bug that was making the canvas not displaying using preload
This commit is contained in:
parent
b9fbf6fa6d
commit
50d8923219
@ -477,6 +477,7 @@ class GLCanvas extends Component {
|
||||
|
||||
handleDraw () {
|
||||
if (!this._needsDraw) return;
|
||||
this._needsDraw = false;
|
||||
if (this._preloading) return;
|
||||
this.draw();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user