From 31a01c957cafc8c08ac388364206f2d547a46ee6 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 20 Nov 2011 00:08:26 -0500 Subject: [PATCH] wireframe patch --- src/textures/wireframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/wireframe.cpp b/src/textures/wireframe.cpp index 15999316..640d709e 100644 --- a/src/textures/wireframe.cpp +++ b/src/textures/wireframe.cpp @@ -56,7 +56,7 @@ public: m_stepWidth(props.getFloat("stepWidth", 0.5f)), m_edgeColor(props.getSpectrum("edgeColor", Spectrum(0.1f))), m_interiorColor(props.getSpectrum("interiorColor", Spectrum(.5f))) { - m_stepWidth = std::max(0.0f, std::min(m_stepWidth, 1.f)); + m_stepWidth = std::max((Float) 0.0f, std::min(m_stepWidth, (Float) 1.0f)); } WireFrame(Stream *stream, InstanceManager *manager)