From 8b2f75a2544d75b749909338acde82db8ec770e0 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Thu, 21 Sep 2017 00:15:20 +0100 Subject: [PATCH] WEBGL build flag still needs canvas renderer for generateTexture --- v3/src/gameobjects/graphics/GraphicsRender.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/v3/src/gameobjects/graphics/GraphicsRender.js b/v3/src/gameobjects/graphics/GraphicsRender.js index ced440328..bdfa57c35 100644 --- a/v3/src/gameobjects/graphics/GraphicsRender.js +++ b/v3/src/gameobjects/graphics/GraphicsRender.js @@ -4,6 +4,9 @@ var renderCanvas = require('../../utils/NOOP'); if (WEBGL_RENDERER) { renderWebGL = require('./GraphicsWebGLRenderer'); + + // Needed for Graphics.generateTexture + renderCanvas = require('./GraphicsCanvasRenderer'); } if (CANVAS_RENDERER)