From ea9b520a39015cf2357521e9fa47109a4cfd727f Mon Sep 17 00:00:00 2001 From: Aras Pranckevicius Date: Thu, 24 Jul 2025 10:43:15 +0300 Subject: [PATCH] Fix: assert in image Luma vectorscope Commit 9e221a10d31a98e09 made it so that IMM shader is unbound while drawing a scope, and added assert to ensure it is unbound. But it missed one place where waveform_draw_one is used, and did not unbind the IMM shader around that. --- source/blender/editors/interface/interface_draw.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/interface/interface_draw.cc b/source/blender/editors/interface/interface_draw.cc index d3d582a19d4..fdd2b41c666 100644 --- a/source/blender/editors/interface/interface_draw.cc +++ b/source/blender/editors/interface/interface_draw.cc @@ -1225,7 +1225,9 @@ void ui_draw_but_VECTORSCOPE(ARegion *region, } else if (scopes->vecscope_mode == SCOPES_VECSCOPE_LUMA) { GPU_blend(GPU_BLEND_ADDITIVE); + immUnbindProgram(); waveform_draw_one(scopes->vecscope, scopes->waveform_tot, col); + immBindBuiltinProgram(GPU_SHADER_3D_UNIFORM_COLOR); } GPU_matrix_pop();