From 057f9caac6079a568770bdc0e7b798d89922ab73 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Wed, 4 Nov 2020 21:29:22 +0100 Subject: Fix T82400: Dyntopo detail size edit operator visual glitch Just a missing immUnbindProgram Reviewed By: sergey Maniphest Tasks: T82400 Differential Revision: https://developer.blender.org/D9459 --- source/blender/editors/sculpt_paint/sculpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 604378cd691..8afb10f254f 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -9362,8 +9362,9 @@ static void dyntopo_detail_size_edit_draw(const bContext *UNUSED(C), pos3d, cd, cd->preview_tri[0], cd->preview_tri[1], true, 120.0f); dyntopo_detail_size_parallel_lines_draw( pos3d, cd, cd->preview_tri[0], cd->preview_tri[2], false, -60.0f); - GPU_matrix_pop(); + immUnbindProgram(); + GPU_matrix_pop(); GPU_blend(GPU_BLEND_NONE); GPU_line_smooth(false); } -- cgit v1.2.3