Fix incorrect viewport location when not using fullscreen HUD
This commit is contained in:
parent
d3457f4508
commit
a6354c74cf
5 changed files with 17 additions and 19 deletions
|
|
@ -233,7 +233,8 @@ bool OpenGLFrameBuffer::WipeDo(int ticks)
|
|||
if (FGLRenderBuffers::IsEnabled())
|
||||
{
|
||||
GLRenderer->mBuffers->BindHudFB();
|
||||
glViewport(0, 0, GLRenderer->mOutputViewport.width, GLRenderer->mOutputViewport.height);
|
||||
const auto &bounds = GLRenderer->mScreenViewport;
|
||||
glViewport(bounds.left, bounds.top, bounds.width, bounds.height);
|
||||
}
|
||||
|
||||
bool done = ScreenWipe->Run(ticks, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue