I&#39;m having a very strange problem. I have subclassed vtkContextItem and have implemented the Paint(vtkContext2D *painter) method.<div>In this Paint() method I do this:</div><div><br></div><div>painter-&gt;GetPen()-&gt;SetColor(0, 127, 255, 255);</div>

<div>painter-&gt;DrawRect(0,0,size,size);</div><div><br></div><div>Now, sometimes when I remove a prop from my renderer, this color is NOT used to draw the rect. It seems that some other color that is used in the application is used for this. I have a streamline, and the color of the DrawRect() matches the end of the streamline! This is ofcourse very weird behaviour. Does anybody have an idea where this could come from, and how to fix it? I&#39;ve looked at the source of vtkOpenGLContextDevice2D.cxx, but I didn&#39;t find anything strange in the DrawQuad() method.</div>

<div><br></div><div>Cheers,</div><div>Tijmen</div>