diff options
author | Johannes Schickel | 2016-03-02 14:28:44 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:31 +0100 |
commit | 8b80e9d36c0705adfcd1af88c16397f2aa01afb8 (patch) | |
tree | 311e0f07f3bef41012a6f981fa0083d5355cce9c | |
parent | 3f9852eb202b55b93f6e3121ce473951bff033cd (diff) | |
download | scummvm-rg350-8b80e9d36c0705adfcd1af88c16397f2aa01afb8.tar.gz scummvm-rg350-8b80e9d36c0705adfcd1af88c16397f2aa01afb8.tar.bz2 scummvm-rg350-8b80e9d36c0705adfcd1af88c16397f2aa01afb8.zip |
OPENGL: Properly deactivate old pipeline.
-rw-r--r-- | backends/graphics/opengl/context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |