- merged the nearly identical wrapper texture classes for the software render and the wiper.

This commit is contained in:
Christoph Oelckers 2018-10-29 07:39:33 +01:00
commit 98e111eba0
7 changed files with 29 additions and 45 deletions

View file

@ -437,7 +437,6 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
if (VRMode::GetVRMode(true)->mEyeCount == 1)
mBuffers->BindCurrentFB();
FDrawInfo di; // For access to the virtual interface. This should be placed elsewhere...
const auto &mScreenViewport = screen->mScreenViewport;
glViewport(mScreenViewport.left, mScreenViewport.top, mScreenViewport.width, mScreenViewport.height);
screen->mViewpoints->Set2D(gl_RenderState, screen->GetWidth(), screen->GetHeight());