aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics
diff options
context:
space:
mode:
authorJohannes Schickel2016-03-02 14:30:34 +0100
committerJohannes Schickel2016-03-16 20:29:31 +0100
commit6dacc96d1f6ed804197382c59765c8cec5146c62 (patch)
tree0c35e563bf80a41d78a0b1e456a5495be2dfd6b7 /backends/graphics
parent8b80e9d36c0705adfcd1af88c16397f2aa01afb8 (diff)
downloadscummvm-rg350-6dacc96d1f6ed804197382c59765c8cec5146c62.tar.gz
scummvm-rg350-6dacc96d1f6ed804197382c59765c8cec5146c62.tar.bz2
scummvm-rg350-6dacc96d1f6ed804197382c59765c8cec5146c62.zip
OPENGL: Only set projection matrix once on pipeline activation.
Diffstat (limited to 'backends/graphics')
-rw-r--r--backends/graphics/opengl/pipelines/pipeline.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/backends/graphics/opengl/pipelines/pipeline.cpp b/backends/graphics/opengl/pipelines/pipeline.cpp
index f79a923f86..6a59cd28e7 100644
--- a/backends/graphics/opengl/pipelines/pipeline.cpp
+++ b/backends/graphics/opengl/pipelines/pipeline.cpp
@@ -34,7 +34,6 @@ void Pipeline::activate() {
if (_activeFramebuffer) {
_activeFramebuffer->activate();
- setProjectionMatrix(_activeFramebuffer->getProjectionMatrix());
}
activateInternal();
@@ -59,7 +58,6 @@ Framebuffer *Pipeline::setFramebuffer(Framebuffer *framebuffer) {
_activeFramebuffer = framebuffer;
if (_isActive && _activeFramebuffer) {
_activeFramebuffer->activate();
- setProjectionMatrix(_activeFramebuffer->getProjectionMatrix());
}
return oldFramebuffer;