aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/Triangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/g3dlite/source/Triangle.cpp')
-rw-r--r--dep/g3dlite/source/Triangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dep/g3dlite/source/Triangle.cpp b/dep/g3dlite/source/Triangle.cpp
index 253438ad5fb..e1b5f8e051b 100644
--- a/dep/g3dlite/source/Triangle.cpp
+++ b/dep/g3dlite/source/Triangle.cpp
@@ -172,7 +172,7 @@ bool Triangle::intersect(const Ray& ray, float& distance, float baryCoord[3]) co
// This is a new hit, closer than the previous one
distance = t;
- baryCoord[0] = 1.0 - u - v;
+ baryCoord[0] = 1.0f - u - v;
baryCoord[1] = u;
baryCoord[2] = v;