From 17a3fd159a48ef96cf64a39e2b034719d5a8888d Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Tue, 22 Sep 2015 21:43:09 -0700 Subject: [PATCH] apparently unix doesn't like the generic type version of sqrt() --- libraries/render-utils/src/GeometryCache.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/render-utils/src/GeometryCache.cpp b/libraries/render-utils/src/GeometryCache.cpp index 444b4ad00f..d117b5f729 100644 --- a/libraries/render-utils/src/GeometryCache.cpp +++ b/libraries/render-utils/src/GeometryCache.cpp @@ -11,7 +11,7 @@ #include "GeometryCache.h" -#include +#include #include #include @@ -123,7 +123,7 @@ void GeometryCache::ShapeData::drawWireInstances(gpu::Batch& batch, size_t count } const VertexVector& icosahedronVertices() { - static const float phi = (1.0f + sqrt(5.0f)) / 2.0f; + static const float phi = (1.0f + sqrtf(5.0f)) / 2.0f; static const float a = 0.5f; static const float b = 1.0f / (2.0f * phi); @@ -153,7 +153,7 @@ const VertexVector& icosahedronVertices() { } const VertexVector& tetrahedronVertices() { - static const float a = 1.0f / sqrt(2.0f); + static const float a = 1.0f / sqrtf(2.0f); static const auto A = vec3(0, 1, a); static const auto B = vec3(0, -1, a); static const auto C = vec3(1, 0, -a);