From 893b1b2d766fd4d58f584c7c8ae2c98ccde1ee73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 15 Jan 2016 19:54:15 -0800 Subject: [PATCH] Cleanup. --- include/bx/fpumath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index 95d4021..b76da2f 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -719,7 +719,7 @@ namespace bx { const float aa = 2.0f/(_right - _left); const float bb = 2.0f/(_top - _bottom); - const float cc = _oglNdc ? 2.0f/(_far - _near) : 1.0f/(_far - _near); + const float cc = (_oglNdc ? 2.0f : 1.0f) / (_far - _near); const float dd = (_left + _right)/(_left - _right); const float ee = (_top + _bottom)/(_bottom - _top); const float ff = _oglNdc ? (_near + _far)/(_near - _far) : _near/(_near - _far);