Stop hammering on the compositor

This commit is contained in:
Patrick Walton 2013-05-29 16:59:07 -07:00
parent 67eb533fc6
commit d97f002111
2 changed files with 3 additions and 2 deletions

View file

@ -193,10 +193,12 @@ fn run_main_loop(port: Port<Msg>,
image_layer.common.set_transform(transform) image_layer.common.set_transform(transform)
} }
*page_size = Size2D(page_width, page_height) *page_size = Size2D(page_width, page_height);
// TODO: Recycle the old buffers; send them back to the renderer to reuse if // TODO: Recycle the old buffers; send them back to the renderer to reuse if
// it wishes. // it wishes.
window.set_needs_display()
} }
} }
} }

View file

@ -94,7 +94,6 @@ impl WindowMethods<Application> for Window {
/// Presents the window to the screen (perhaps by page flipping). /// Presents the window to the screen (perhaps by page flipping).
pub fn present(&mut self) { pub fn present(&mut self) {
glut::swap_buffers(); glut::swap_buffers();
glut::post_redisplay();
} }
/// Registers a callback to run when a composite event occurs. /// Registers a callback to run when a composite event occurs.