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:
authorClément Foucault <foucault.clem@gmail.com>2020-09-14 21:52:45 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-09-14 21:53:34 +0300
commitf1e34ee7faabeaebf857435e8422a68fb520e283 (patch)
treec0a8a597ea2e38b4a48f79303e2d14455e5af6cc /source/blender/gpu/intern/gpu_state.cc
parentfc2ce8495e869e2527f9bb2e2618fa02aa67d72e (diff)
Fix T80782 GPU: Curve editing widget point size broken after recent commit
This was caused by a faulty default where program point size was used.
Diffstat (limited to 'source/blender/gpu/intern/gpu_state.cc')
-rw-r--r--source/blender/gpu/intern/gpu_state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc
index 9ab056e868d..1dc8b106029 100644
--- a/source/blender/gpu/intern/gpu_state.cc
+++ b/source/blender/gpu/intern/gpu_state.cc
@@ -351,7 +351,7 @@ StateManager::StateManager(void)
mutable_state.depth_range[0] = 0.0f;
mutable_state.depth_range[1] = 1.0f;
- mutable_state.point_size = 1.0f;
+ mutable_state.point_size = -1.0f; /* Negative is not using point size. */
mutable_state.line_width = 1.0f;
mutable_state.stencil_write_mask = 0x00;
mutable_state.stencil_compare_mask = 0x00;