From 91df0a4cb99b761491898a6351f6afc70002b6d2 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Mon, 28 Jan 2019 16:40:24 +0000 Subject: [PATCH] Fix pipeline reference --- src/gameobjects/graphics/GraphicsWebGLRenderer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gameobjects/graphics/GraphicsWebGLRenderer.js b/src/gameobjects/graphics/GraphicsWebGLRenderer.js index 5f42c2b7a..bffa28652 100644 --- a/src/gameobjects/graphics/GraphicsWebGLRenderer.js +++ b/src/gameobjects/graphics/GraphicsWebGLRenderer.js @@ -47,12 +47,12 @@ var GraphicsWebGLRenderer = function (renderer, src, interpolationPercentage, ca return; } - var pipeline = this.pipeline; + var pipeline = renderer.currentPipeline; var camMatrix = pipeline._tempMatrix1; var graphicsMatrix = pipeline._tempMatrix2; var currentMatrix = pipeline._tempMatrix4; - + renderer.setPipeline(pipeline); currentMatrix.loadIdentity();