mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 08:31:23 +00:00
- restored block of code that got deleted by a bad merge of a cherry-picked commit.
This commit is contained in:
parent
bec1825e8c
commit
b570f28597
1 changed files with 6 additions and 0 deletions
|
@ -428,6 +428,12 @@ void FGLRenderer::Draw2D(F2DDrawer *drawer)
|
||||||
const auto &mScreenViewport = screen->mScreenViewport;
|
const auto &mScreenViewport = screen->mScreenViewport;
|
||||||
glViewport(mScreenViewport.left, mScreenViewport.top, mScreenViewport.width, mScreenViewport.height);
|
glViewport(mScreenViewport.left, mScreenViewport.top, mScreenViewport.width, mScreenViewport.height);
|
||||||
|
|
||||||
|
HWViewpointUniforms matrices;
|
||||||
|
matrices.SetDefaults();
|
||||||
|
matrices.mProjectionMatrix.ortho(0, screen->GetWidth(), screen->GetHeight(), 0, -1.0f, 1.0f);
|
||||||
|
matrices.CalcDependencies();
|
||||||
|
GLRenderer->mShaderManager->ApplyMatrices(&matrices, NORMAL_PASS);
|
||||||
|
|
||||||
glDisable(GL_DEPTH_TEST);
|
glDisable(GL_DEPTH_TEST);
|
||||||
|
|
||||||
// Korshun: ENABLE AUTOMAP ANTIALIASING!!!
|
// Korshun: ENABLE AUTOMAP ANTIALIASING!!!
|
||||||
|
|
Loading…
Reference in a new issue