Changed array initialization because it did not compile under windows.

This commit is contained in:
Steffen 2015-03-03 17:37:03 +01:00
parent 0d8256abe5
commit dd0afd1978

View File

@ -315,7 +315,7 @@ void Graphics::updateLights() {
lightingShader->setUniform("directionalIntensity", lightingShader->setUniform("directionalIntensity",
level->getDirectionalLight()->getIntensity()); level->getDirectionalLight()->getIntensity());
} }
float flameData[closestLights.size() * 6] = {}; float* flameData = new float[closestLights.size() * 6];
int flameIndex = 0; int flameIndex = 0;
for (unsigned int i = 0; i<closestLights.size(); i++) { for (unsigned int i = 0; i<closestLights.size(); i++) {
if (closestLights.at(i).getFlameYOffset() != 0.0f) { if (closestLights.at(i).getFlameYOffset() != 0.0f) {