Changed array initialization because it did not compile under windows.
This commit is contained in:
parent
0d8256abe5
commit
dd0afd1978
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user