WEBGL build flag still needs canvas renderer for generateTexture

This commit is contained in:
Richard Davey 2017-09-21 00:15:20 +01:00
parent 2d357d7526
commit 8b2f75a254

View file

@ -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)