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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user