Branimir Karadžić 10 年 前
コミット
893b1b2d76
1 ファイル変更1 行追加1 行削除
  1. 1 1
      include/bx/fpumath.h

+ 1 - 1
include/bx/fpumath.h

@@ -719,7 +719,7 @@ namespace bx
 	{
 	{
 		const float aa = 2.0f/(_right - _left);
 		const float aa = 2.0f/(_right - _left);
 		const float bb = 2.0f/(_top - _bottom);
 		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 dd = (_left + _right)/(_left - _right);
 		const float ee = (_top + _bottom)/(_bottom - _top);
 		const float ee = (_top + _bottom)/(_bottom - _top);
 		const float ff = _oglNdc ? (_near + _far)/(_near - _far) : _near/(_near - _far);
 		const float ff = _oglNdc ? (_near + _far)/(_near - _far) : _near/(_near - _far);