Fixed epsilon for half types

This commit is contained in:
Christophe Riccio
2012-11-06 02:26:31 +01:00
parent 1fb8bec873
commit bfec0e2388
4 changed files with 21 additions and 13 deletions

View File

@@ -14,7 +14,9 @@ int main()
{
int Error(0);
float MinHalf = 0.0f;
while (glm::half(MinHalf) == glm::half(0.0f))
MinHalf += std::numeric_limits<float>::epsilon();
return Error;
}