Skip to content
Snippets Groups Projects
Commit 75dbbb0d authored by JonShard's avatar JonShard
Browse files

fixed compile error spesific to clang-5.0 where copying address of temp object is illegal.

parent 09749991
Branches
No related tags found
No related merge requests found
......@@ -686,7 +686,8 @@ int Scene::m_lightsCount;
// Buffer light data
Scene::bufferPointLights();
m_lightBuffer.update(m_sunGLindex, sizeof(DirectionalLightBO), &(((EntityDirectionalLight*)m_entities[m_lightsOffset + m_lightsCount])->pack()));
auto pointLight = (((EntityDirectionalLight*)m_entities[m_lightsOffset + m_lightsCount])->pack());
m_lightBuffer.update(m_sunGLindex, sizeof(DirectionalLightBO), &pointLight);
for (Entity* entity : m_entities)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment