Commit 03efc593 authored by Ken Martin's avatar Ken Martin

Reduce the size of the test it was too big for my macbook

macbook with retina display by default can only show up to a
690 pixel tall window because it does pixel doubling by default and
it has a title bar. 1400 - title bar / 2 is < 700.

Also a minor fix to release texture resources more quickly on
the imageslicemapper.

Change-Id: I6421807cbb3e7bd048c333909c18f6a95d21d662
parent 885e4ed6
......@@ -269,7 +269,7 @@ int TestPolygonalHandleRepresentations(int argc, char*argv[])
widget[12] = CreateWidget( iren, 12, 561753, 5.11577e+06, 3183, false, "Sphere contrained to surface", demActor, pd, true, 100.0 );
widget[13] = CreateWidget( iren, 13, 562692, 5.11521e+06, 3355.65, false, "Crosshair" );
renWin->SetSize(700,700);
renWin->SetSize(600,600);
renWin->Render();
iren->Initialize();
......
......@@ -460,6 +460,10 @@ void vtkOpenGLImageSliceMapper::RenderPolygon(
actor->GetTexture()->Render(ren);
}
actor->GetMapper()->Render(ren, actor);
if (textured)
{
actor->GetTexture()->PostRender(ren);
}
vtkOpenGLCheckErrorMacro("failed after RenderPolygon");
}
......
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