Commit fbd7f8f7 authored by Ken Martin's avatar Ken Martin
Browse files

tried to fix saveImageasppm method

parent 1ede3cde
......@@ -52,6 +52,7 @@ public:
void SetSize(int,int);
vlGetMacro(Fd,int);
virtual void SaveImageAsPPM();
// stereo rendering stuff
virtual void StereoUpdate();
......
......@@ -1345,3 +1345,20 @@ void vlSbrRenderWindow::CopyResultFrame(void)
this->Frame();
}
void vlSbrRenderWindow::SaveImageAsPPM()
{
// flush and display the buffer
if (this->DoubleBuffer)
{
dbuffer_switch(this->Fd, this->Buffer = !(this->Buffer));
}
this->vlRenderWindow::SaveImageAsPPM();
// flush and display the buffer
if (this->DoubleBuffer)
{
dbuffer_switch(this->Fd, this->Buffer = !(this->Buffer));
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment