Skip to content

Commit

Permalink
Fix an issue with PCLVisualizer producing empty screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
taketwo committed Oct 11, 2014
1 parent 4613bd4 commit c6ce10c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions visualization/src/interactor_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pcl::visualization::PCLVisualizerInteractorStyle::Initialize ()

// Create the image filter and PNG writer objects
wif_ = vtkSmartPointer<vtkWindowToImageFilter>::New ();
wif_->ReadFrontBufferOff ();
snapshot_writer_ = vtkSmartPointer<vtkPNGWriter>::New ();
snapshot_writer_->SetInputConnection (wif_->GetOutputPort ());

Expand Down

0 comments on commit c6ce10c

Please sign in to comment.