From 8186b96753e60a100a8fa58880350367f6fc85b7 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 23 Oct 2020 15:27:47 +0200 Subject: Fix use of uninitialized line/polygon smooth variables in GPU state Found by valgrind, unclear if this caused an actual bug. --- source/blender/gpu/intern/gpu_state.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- cgit v1.2.3