forked from bartvdbraak/blender
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)
This commit is contained in:
parent
a3b47ede17
commit
8ea7b742f6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user