Skip to content

Commit

Permalink
- restore the viewport after the SSAO pass.
Browse files Browse the repository at this point in the history
This runs through the generic postprocessing code which restores the screen's viewport but since this is run in the middle of the scene it needs to restore the scene's viewport (i.e. the window controlled by screenblocks.)
  • Loading branch information
coelckers committed Jul 28, 2018
1 parent 66f616d commit 7e69cd8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gl/scene/gl_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ void FDrawInfo::DrawScene(int drawmode)
{
gl_RenderState.EnableDrawBuffers(1);
GLRenderer->AmbientOccludeScene(VPUniforms.mProjectionMatrix.get()[5]);
glViewport(screen->mSceneViewport.left, screen->mSceneViewport.top, screen->mSceneViewport.width, screen->mSceneViewport.height);
GLRenderer->mBuffers->BindSceneFB(true);
gl_RenderState.EnableDrawBuffers(gl_RenderState.GetPassDrawBufferCount());
gl_RenderState.Apply();
Expand Down

0 comments on commit 7e69cd8

Please sign in to comment.