Minor fix

This commit is contained in:
Matthias Schiffer 2009-12-24 12:16:41 +01:00
parent 577cd77e2b
commit 4b9928e16e

View file

@ -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);