shader replacement issue in 9.1.0.rc1

We use dashed lines in our application. Dashed lines are no longer supported natively, so I have developed an actor that implements the fix proposed by @clintonstimpson in https://gitlab.kitware.com/vtk/vtk/-/issues/15799. This used to work fine, but somewhere between 9.0.3 and 9.1.rc1 the unsigned char point colors that I assign are getting mixed up.

In 9.0.3 I see yellow and blue dashed lines

In 9.1.0.rc1 they get rendered as blue and red

.

[EDIT: I’m using point colors not cell colors. In fact when I do use cell colors the lines themselves get mixed up]