diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |