Fix incorrect viewport location when not using fullscreen HUD

This commit is contained in:
Magnus Norddahl 2016-07-31 13:23:49 +02:00
commit a6354c74cf
5 changed files with 17 additions and 19 deletions

View file

@ -198,7 +198,7 @@ void FGLRenderer::BloomScene()
// Add bloom back to scene texture:
mBuffers->BindSceneTextureFB();
glViewport(0, 0, mOutputViewport.width, mOutputViewport.height);
glViewport(mOutputViewport.left, mOutputViewport.top, mOutputViewport.width, mOutputViewport.height);
glEnable(GL_BLEND);
glBlendEquation(GL_FUNC_ADD);
glBlendFunc(GL_ONE, GL_ONE);