From 50d89232196586f1daf17c360df30fa99c3d7bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 21 Sep 2015 21:20:55 +0200 Subject: [PATCH] Fix a bug that was making the canvas not displaying using preload --- src/GLCanvas.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GLCanvas.js b/src/GLCanvas.js index 1528c8b..9f6cf28 100644 --- a/src/GLCanvas.js +++ b/src/GLCanvas.js @@ -477,6 +477,7 @@ class GLCanvas extends Component { handleDraw () { if (!this._needsDraw) return; + this._needsDraw = false; if (this._preloading) return; this.draw(); }