fixed calls to getOrthoMatrix

This commit is contained in:
rachytski 2013-02-18 18:19:28 +03:00 committed by Alex Zolotarev
parent 227c0b868f
commit 420bf9e611
2 changed files with 3 additions and 3 deletions

View file

@ -66,8 +66,8 @@ namespace graphics
getOrthoMatrix(coordM,
0, m_width,
m_height, 0,
-graphics::maxDepth,
graphics::maxDepth + 1);
graphics::minDepth,
graphics::maxDepth + 100);
if (m_frameBuffer)

View file

@ -9,6 +9,6 @@ namespace graphics
void RenderTarget::coordMatrix(math::Matrix<float, 4, 4> & m)
{
getOrthoMatrix(m, 0, width(), 0, height(), -maxDepth, maxDepth + 1);
getOrthoMatrix(m, 0, width(), 0, height(), minDepth, maxDepth + 100);
}
}