[vtk-developers] recent Solution: Bug in SetRenderWindow(NULL) => still a bug?

Dean Inglis dean.inglis at camris.ca
Thu Dec 11 11:48:10 EST 2003


Hi Mathieu,

tried both:

void vtkOpenGLImageActor::ReleaseGraphicsResources(vtkWindow *renWin)
{
   if (this->Index && renWin)
     {
//    ((vtkRenderWindow *) renWin)->MakeCurrent();
<snip>

and

//--------------------------------------------------------------------------
-
__fastcall TvtkBorlandRenderWindow::~TvtkBorlandRenderWindow()
{
    // Delete this first because Renderwindow has a hold on it too
  if (FInteractor)
    {
    FInteractor->Delete();
    FInteractor = NULL;
    }
  if (FRenderer)
    {
//  if(FRenderWindow) { FRenderWindow->RemoveRenderer(FRenderer); }
<snip>


same wglMakeCurrent errors...

Dean





More information about the vtk-developers mailing list