Merge pull request #455 from Karanlos/master
frustumLH compile error fix. #455
This commit is contained in:
commit
78f686b4be
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user