- fixed: light mode from mapinfo had no effect

https://forum.zdoom.org/viewtopic.php?t=64997
This commit is contained in:
alexey.lysiuk 2019-06-12 09:49:40 +03:00
commit 7e901055ea
3 changed files with 8 additions and 5 deletions

View file

@ -78,7 +78,7 @@ void HWViewpointBuffer::Set2D(FRenderState &di, int width, int height)
if (width != m2DWidth || height != m2DHeight)
{
HWViewpointUniforms matrices;
matrices.SetDefaults();
matrices.SetDefaults(nullptr);
matrices.mProjectionMatrix.ortho(0, (float)width, (float)height, 0, -1.0f, 1.0f);
matrices.CalcDependencies();
mBuffer->Map();