Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-10-23 16:27:47 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-10-23 16:27:47 +0300
commit8186b96753e60a100a8fa58880350367f6fc85b7 (patch)
treefe38b2ed94544428d9f853255125f016aa04e532
parent9441c640c82a7eb07822c0349882f0f3f9d4d896 (diff)
Fix use of uninitialized line/polygon smooth variables in GPU state
Found by valgrind, unclear if this caused an actual bug.
-rw-r--r--source/blender/gpu/intern/gpu_state.cc2
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;