<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hello,<br><br>I have a vtkOpenGLGPUVolumeRayCastMapper that I have previously used with another actor, renderer and render window. I wish to reuse it (creating a new actor, renderer and renderwindow), but I obtain an assert error:<br><br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">// ----------------------------------------------------------------------------</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">// Description:</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">// Use the shader program.</span><br style="font-family: Courier
 New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">// It saves the current shader program or fixed-pipeline in use.</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">// It also set the uniform variables.</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">void vtkShaderProgram2::Use()</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">{</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">&nbsp; assert("pre: context_is_set" &amp;&amp; this-&gt;Context!=0);</span><br
 style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">&nbsp; assert("pre: current_context_matches" &amp;&amp; this-&gt;Context-&gt;IsCurrent());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;---------------- Fail here!</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">&nbsp; this-&gt;Build();</span><br><br>....<br><br>Look like that the context isn't current. There's a way to "reset" the mapper internal state? Note that the volume data input is the same, so I wish to reuse the mapper in order to avoid the very slow initialization (especially the gradients computation). Any hints?<br><br>Thanks in advance.<br></div>
</div><br>



      </body></html>