From 8b80e9d36c0705adfcd1af88c16397f2aa01afb8 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 2 Mar 2016 14:28:44 +0100 Subject: OPENGL: Properly deactivate old pipeline. --- backends/graphics/opengl/context.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backends/graphics/opengl') diff --git a/backends/graphics/opengl/context.cpp b/backends/graphics/opengl/context.cpp index d93ecdc517..55abdf7dfd 100644 --- a/backends/graphics/opengl/context.cpp +++ b/backends/graphics/opengl/context.cpp @@ -48,6 +48,9 @@ void Context::reset() { Pipeline *Context::setPipeline(Pipeline *pipeline) { Pipeline *oldPipeline = activePipeline; + if (oldPipeline) { + oldPipeline->deactivate(); + } activePipeline = pipeline; if (activePipeline) { -- cgit v1.2.3