diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-12-24 12:16:41 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-12-24 12:16:41 +0100 |
commit | 4b9928e16efec2aea135287974491faa3633766c (patch) | |
tree | ecef9ff6e5730eb8d2267bcd69381e17e26c5e7c | |
parent | 577cd77e2be089a1bf2284e33e9b07fc36a4320b (diff) | |
download | zoom++-4b9928e16efec2aea135287974491faa3633766c.tar zoom++-4b9928e16efec2aea135287974491faa3633766c.zip |
Minor fix
-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); |