aboutsummaryrefslogtreecommitdiff
path: root/src/Engine/Object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Engine/Object.h')
-rw-r--r--src/Engine/Object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Engine/Object.h b/src/Engine/Object.h
index ea672db..7e620c4 100644
--- a/src/Engine/Object.h
+++ b/src/Engine/Object.h
@@ -46,7 +46,7 @@ namespace Donut
float a = glm::dot(ray.m_Direction, ray.m_Direction);
float b = 2.0f * glm::dot(oc, ray.m_Direction);
float c = glm::dot(oc, oc) - m_Radius * m_Radius;
- double discriminant = b*b - 4*a*c;
+ float discriminant = static_cast<float>(b*b - 4*a*c);
if(discriminant < 0)
return false;