diff --git a/src/components/main/compositing/mod.rs b/src/components/main/compositing/mod.rs index c15bdfbe5f0..c06245bc8c2 100644 --- a/src/components/main/compositing/mod.rs +++ b/src/components/main/compositing/mod.rs @@ -193,10 +193,12 @@ fn run_main_loop(port: Port, 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 // it wishes. + + window.set_needs_display() } } } diff --git a/src/components/main/platform/common/glut_windowing.rs b/src/components/main/platform/common/glut_windowing.rs index 1e33c66b277..8df2985425b 100644 --- a/src/components/main/platform/common/glut_windowing.rs +++ b/src/components/main/platform/common/glut_windowing.rs @@ -94,7 +94,6 @@ impl WindowMethods for Window { /// Presents the window to the screen (perhaps by page flipping). pub fn present(&mut self) { glut::swap_buffers(); - glut::post_redisplay(); } /// Registers a callback to run when a composite event occurs.