diff --git a/src/renderer/webgl/PipelineManager.js b/src/renderer/webgl/PipelineManager.js index b4a16a667..b9f32867e 100644 --- a/src/renderer/webgl/PipelineManager.js +++ b/src/renderer/webgl/PipelineManager.js @@ -437,6 +437,11 @@ var PipelineManager = new Class({ { this.flush(); + if (this.current) + { + this.current.unbind(); + } + this.current = pipeline; pipeline.bind();