From 62eeeaa1c61a0a43b9013442d12a49d6e9b700aa Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Tue, 27 May 2014 18:12:15 -0700 Subject: [PATCH] Fix for Windows build failure. --- interface/src/Application.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 32fa50e710..37aa23f317 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -2294,7 +2294,8 @@ void Application::updateShadowMap() { // to reduce texture "shimmer," move in texel increments float texelSize = (2.0f * radius) / fbo->width(); - center = glm::round(center / texelSize) * texelSize; + center = glm::vec3(roundf(center.x / texelSize) * texelSize, roundf(center.y / texelSize) * texelSize, + roundf(center.z / texelSize) * texelSize); glm::vec3 minima(center.x - radius, center.y - radius, center.z - radius); glm::vec3 maxima(center.x + radius, center.y + radius, center.z + radius);