diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-10-23 16:27:47 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-10-23 16:27:47 +0300 |
commit | 8186b96753e60a100a8fa58880350367f6fc85b7 (patch) | |
tree | fe38b2ed94544428d9f853255125f016aa04e532 /source/blender/gpu | |
parent | 9441c640c82a7eb07822c0349882f0f3f9d4d896 (diff) |
Fix use of uninitialized line/polygon smooth variables in GPU state
Found by valgrind, unclear if this caused an actual bug.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_state.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc index fae196b202a..10c3fabe75d 100644 --- a/source/blender/gpu/intern/gpu_state.cc +++ b/source/blender/gpu/intern/gpu_state.cc @@ -396,6 +396,8 @@ StateManager::StateManager(void) state.shadow_bias = false; state.polygon_smooth = false; state.clip_distances = 0; + state.polygon_smooth = 0; + state.line_smooth = 0; mutable_state.depth_range[0] = 0.0f; mutable_state.depth_range[1] = 1.0f; |