Merge pull request #276 from aismann/master

Same as on 3.17 (with small changes)
This commit is contained in:
halx99 2020-11-22 23:43:18 -08:00 committed by GitHub
parent b51545ac54
commit a300b75a2f
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ void CommandBufferMTL::setViewport(int x, int y, unsigned int w, unsigned int h)
viewport.originY = (int)(_renderTargetHeight - y - h); viewport.originY = (int)(_renderTargetHeight - y - h);
viewport.width = w; viewport.width = w;
viewport.height = h; viewport.height = h;
viewport.znear = -1; viewport.znear = 0;
viewport.zfar = 1; viewport.zfar = 1;
[_mtlRenderEncoder setViewport:viewport]; [_mtlRenderEncoder setViewport:viewport];
} }