Merge pull request #455 from Karanlos/master

frustumLH compile error fix. #455
This commit is contained in:
Christophe R 2015-12-06 19:59:17 +01:00
commit 78f686b4be

View File

@ -274,8 +274,8 @@ namespace glm
Result[2][3] = static_cast<T>(1);
#ifdef GLM_DEPTH_ZERO_TO_ONE
Result[2][2] = farVal / (zFar - nearVal);
Result[3][2] = -(farVal * nearVal) / (zFar - nearVal);
Result[2][2] = farVal / (farVal - nearVal);
Result[3][2] = -(farVal * nearVal) / (farVal - nearVal);
#else
Result[2][2] = (farVal + nearVal) / (farVal - nearVal);
Result[3][2] = - (static_cast<T>(2) * farVal * nearVal) / (farVal - nearVal);