Skip to content

Commit

Permalink
work around MSVC compiler bug (#806)
Browse files Browse the repository at this point in the history
  • Loading branch information
brakhane authored Feb 28, 2024
1 parent 1c49e49 commit 4d7e514
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WickedEngine/wiRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4011,6 +4011,8 @@ void UpdateRenderData(

// Write lights into entity array:
const XMFLOAT2 atlas_dim_rcp = XMFLOAT2(1.0f / float(shadowMapAtlas.desc.width), 1.0f / float(shadowMapAtlas.desc.height));
ShaderEntity shaderentity;

for (uint32_t lightIndex : vis.visibleLights)
{
if (entityCounter == SHADER_ENTITY_COUNT)
Expand All @@ -4019,7 +4021,7 @@ void UpdateRenderData(
entityCounter--;
break;
}
ShaderEntity shaderentity = {};
shaderentity = {};

const LightComponent& light = vis.scene->lights[lightIndex];

Expand Down

0 comments on commit 4d7e514

Please sign in to comment.