Commit 0432311c authored by Ken Martin's avatar Ken Martin
Browse files

fixed bug in the aspect ratio calculation

parent d5505f4e
......@@ -242,7 +242,7 @@ void vtkXglrCamera::Render(vtkCamera *cam, vtkXglrRenderer *ren)
xgl_context_new_frame(*context);
}
aspect[0] = size[0]/size[1];
aspect[0] = ((float)size[0])/((float)size[1]);
aspect[1] = 1.0;
vdc_bounds.xmin = -1;
......
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