diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 2420f1aea..fa7b9f7a7 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -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();