From 4b9928e16efec2aea135287974491faa3633766c Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 24 Dec 2009 12:16:41 +0100 Subject: Minor fix --- src/Renderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Renderer.cpp b/src/Renderer.cpp index b02c5ff..0f4c4d7 100644 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -68,8 +68,8 @@ void Renderer::renderShadowVolume(const ShadowVolume &v) { for(int i = 0; i < 3; ++i) { const vmml::vec3f &p1 = v.getVertex(i), &p2 = v.getVertex((i+1)%3); - const vmml::vec4f &dir1 = vmml::vec4f(v.getDirection(i), 0); - const vmml::vec4f &dir2 = vmml::vec4f(v.getDirection((i+1)%3), 0); + vmml::vec4f dir1 = vmml::vec4f(v.getDirection(i), 0); + vmml::vec4f dir2 = vmml::vec4f(v.getDirection((i+1)%3), 0); glVertex3fv(p1.array); glVertex3fv(p2.array); -- cgit v1.2.3