瀏覽代碼

rlOrtho() reverted change

pull/1528/head
Ray 5 年之前
父節點
當前提交
bbc09288bd
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. +5
    -6
      src/rlgl.h

+ 5
- 6
src/rlgl.h 查看文件

@ -1100,12 +1100,11 @@ void rlFrustum(double left, double right, double bottom, double top, double znea
// Multiply the current matrix by an orthographic matrix generated by parameters
void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar)
{
if (((right - left) > 0) && ((top - bottom) > 0))
{
Matrix matOrtho = MatrixOrtho(left, right, bottom, top, znear, zfar);
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, matOrtho);
}
else *RLGL.State.currentMatrix = MatrixIdentity();
// NOTE: If left-right and top-botton values are equal it could create
// a division by zero on MatrixOrtho(), response to it is platform/compiler dependant
Matrix matOrtho = MatrixOrtho(left, right, bottom, top, znear, zfar);
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, matOrtho);
}
#endif

Loading…
取消
儲存