Commit 47ac0d5c authored by Ken Martin's avatar Ken Martin

some minor cleanups

Change-Id: I48bdaf653e677ca3626ed6087bca25831fed1b26
parent b7a0eefc
......@@ -76,7 +76,7 @@ int TestPDBBallAndStick(int argc, char *argv[])
double firstRender = timer->GetElapsedTime();
cerr << "first render time: " << firstRender << endl;
/*
int numRenders = 85;
timer->StartTimer();
for (int i = 0; i < numRenders; ++i)
......@@ -96,6 +96,7 @@ int TestPDBBallAndStick(int argc, char *argv[])
ren->GetActiveCamera()->Zoom(1.7);
win->Render();
*/
// Finally render the scene and compare the image to a reference image
win->SetMultiSamples(0);
......
......@@ -56,7 +56,10 @@ static int vtkOpenGLRenderWindowGlobalMaximumNumberOfMultiSamples = 8;
// ----------------------------------------------------------------------------
void vtkOpenGLRenderWindow::SetGlobalMaximumNumberOfMultiSamples(int val)
{
if (val == vtkOpenGLRenderWindowGlobalMaximumNumberOfMultiSamples) return;
if (val == vtkOpenGLRenderWindowGlobalMaximumNumberOfMultiSamples)
{
return;
}
vtkOpenGLRenderWindowGlobalMaximumNumberOfMultiSamples = val;
}
......@@ -77,7 +80,10 @@ bool vtkOpenGLRenderWindow::GetContextSupportsOpenGL32()
// ----------------------------------------------------------------------------
void vtkOpenGLRenderWindow::SetContextSupportsOpenGL32(bool val)
{
if (val == vtkOpenGLRenderWindowContextSupportsOpenGL32) return;
if (val == vtkOpenGLRenderWindowContextSupportsOpenGL32)
{
return;
}
vtkOpenGLRenderWindowContextSupportsOpenGL32 = val;
}
......
Markdown is supported
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