Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
Fix a bug that was making the canvas not displaying using preload
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Sep 21, 2015
1 parent b9fbf6f commit 50d8923
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/GLCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ class GLCanvas extends Component {

handleDraw () {
if (!this._needsDraw) return;
this._needsDraw = false;
if (this._preloading) return;
this.draw();
}
Expand Down

0 comments on commit 50d8923

Please sign in to comment.