Fix #105323: Compositor: Crash when using color-ramp with b-spline
... or carnidal interpolation with only 2 color stops. This was triggering an incorrect path due to missing optimisation cases. Just fall back to the unoptimized case fixes the assert.
This commit is contained in:
@@ -92,6 +92,10 @@ class ColorRampShaderNode : public ShaderNode {
|
||||
GPU_uniform(&color_band->data[0].r),
|
||||
GPU_uniform(&color_band->data[1].r));
|
||||
return;
|
||||
case COLBAND_INTERP_B_SPLINE:
|
||||
case COLBAND_INTERP_CARDINAL:
|
||||
/* Not optimized yet. Fallback to gradient texture. */
|
||||
break;
|
||||
default:
|
||||
BLI_assert_unreachable();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user