mirror of https://github.com/axmolengine/axmol.git
Merge: 0d04e20b50
eee60b9d99
Merge pull request #276 from aismann/master Same as on 3.17 (with small changes)
This commit is contained in:
parent
b51545ac54
commit
a300b75a2f
|
@ -253,7 +253,7 @@ void CommandBufferMTL::setViewport(int x, int y, unsigned int w, unsigned int h)
|
|||
viewport.originY = (int)(_renderTargetHeight - y - h);
|
||||
viewport.width = w;
|
||||
viewport.height = h;
|
||||
viewport.znear = -1;
|
||||
viewport.znear = 0;
|
||||
viewport.zfar = 1;
|
||||
[_mtlRenderEncoder setViewport:viewport];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue