Fix: assert in image Luma vectorscope

Commit 9e221a10d3 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.
This commit is contained in:
Aras Pranckevicius
2025-07-24 10:43:15 +03:00
parent 8a6d706d77
commit ea9b520a39

View File

@@ -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();