Commit 7faa8d65 authored by Jan Möbius's avatar Jan Möbius
Browse files

Work around c++0x problem with initialization of a vector

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f922a0e0
......@@ -351,7 +351,12 @@ void LightNode::draw(GLState& _state, const DrawModes::DrawMode& /*_drawMode*/)
glLightf(lightId_, GL_SPOT_EXPONENT, 0.0f);
float pos[] = {backup_position[0], backup_position[1], backup_position[2], 0.0f};
float pos[4];
pos [0] = backup_position[0];
pos [1] = backup_position[1];
pos [2] = backup_position[2];
pos [3] = 0.0f;
glLightfv(lightId_, GL_POSITION, pos);
// Set colors
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment