Fixed float comparison warnings #270

This commit is contained in:
Christophe Riccio 2014-11-19 01:12:24 +01:00
parent 3adf263341
commit 5b911d1eb0

View File

@ -213,8 +213,8 @@ namespace glm
T zFar T zFar
) )
{ {
assert(aspect != static_cast<T>(0)); assert(abs(aspect - std::numeric_limits<T>::epsilon()) > static_cast<T>(0));
assert(zFar != zNear); assert(zFar > zNear);
T const tanHalfFovy = tan(fovy / static_cast<T>(2)); T const tanHalfFovy = tan(fovy / static_cast<T>(2));