diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2013-03-04 12:45:42 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2013-03-04 12:45:42 +0400 |
commit | 8ea7b742f66a9cf6b19369685bed75c0e338277d (patch) | |
tree | 240e0572731d5e38bc2ee06c40d6d65e2d7cd014 /source/gameengine/Rasterizer | |
parent | a3b47ede1776e1a3ef9514b152d880d2c98d597a (diff) |
bge bugfix: [#34517] 2D Filter causes mouselook script drifting effect (patch by Daniel Stokes - Kupoman)
Fix for 2.66a
""We can't pass the results of canvas->GetViewPort() directly because canvas->SetViewPort() does some extra math""
Bug introduced during 2.65 series in the refactor to use canvas->SetViewPort instead of direct opengl calls for viewport
(53305, 53392, 53393)
Diffstat (limited to 'source/gameengine/Rasterizer')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_2DFilterManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp b/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp index 8a8dc37443b..e093b7cd722 100644 --- a/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp +++ b/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp @@ -468,7 +468,8 @@ void RAS_2DFilterManager::RenderFilters(RAS_ICanvas* canvas) } glEnable(GL_DEPTH_TEST); - canvas->SetViewPort(viewport[0],viewport[1],viewport[2],viewport[3]); + //We can't pass the results of canvas->GetViewPort() directly because canvas->SetViewPort() does some extra math [#34517] + canvas->SetViewPort(0, 0, viewport[2]-1, viewport[3]-1); EndShaderProgram(); glPopMatrix(); glMatrixMode(GL_MODELVIEW); |