mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-22 03:08:24 +00:00
rlOrtho() reverted change
This commit is contained in:
11
src/rlgl.h
11
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
|
// 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)
|
void rlOrtho(double left, double right, double bottom, double top, double znear, double zfar)
|
||||||
{
|
{
|
||||||
if (((right - left) > 0) && ((top - bottom) > 0))
|
// 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);
|
Matrix matOrtho = MatrixOrtho(left, right, bottom, top, znear, zfar);
|
||||||
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, matOrtho);
|
|
||||||
}
|
*RLGL.State.currentMatrix = MatrixMultiply(*RLGL.State.currentMatrix, matOrtho);
|
||||||
else *RLGL.State.currentMatrix = MatrixIdentity();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user