diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 11:08:50 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-06-08 11:08:50 +0200 |
commit | 53d61d8c52773fc10345282b499d2a45740fcaa8 (patch) | |
tree | ebee321b2ded0f3f615a346ae1473d62b69559af /shaders | |
parent | 7f8d255ab9b468cce6b8bac76c2fb066babde5a4 (diff) |
clean up msvc warnings
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/lightmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/lightmap.cpp b/shaders/lightmap.cpp index b3cd1e60..69702624 100644 --- a/shaders/lightmap.cpp +++ b/shaders/lightmap.cpp @@ -225,7 +225,7 @@ void lightmap_shader::add_light(Vector2 neighbor_offset, const light_s& light) neighbor_offset += Vector2((float)half_neighbors); constexpr auto tile_size = TILE_SIZE2.sum()/2; - float range; + float range = 0; fm_assert(light.falloff < light_falloff::COUNT); switch (light.falloff) |