Skip to content
Snippets Groups Projects
Commit 84ca1a3c authored by Nicky's avatar Nicky
Browse files

Do not bit blast 0 into a non POD struct to zero it, rather use the default constructor.

There is a few peculiar differences in default member initializationn namely:
gamma > 1.0f; sun_norm > 0.0f, 1.0f, 0.0f, 1.0f; cloud_shadow > 1.0f; dome_radius > 1.0f; dome_offset > 1.0f
Which probably made the original memset produce the wrong result anyway as it differs from the value the
LLVOSky set (the default ctor of AtmosphericsVars) vs what the memset would produce in case of a force update (all 0s).
parent af610f4a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment