summaryrefslogtreecommitdiffstats
path: root/examples/integration/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-08 18:33:36 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-06-08 18:33:36 +0200
commit8493ccec7fd4639aef9e02ad3519a7a3707cd488 (patch)
tree528fc7245a21fc5f362cca2bec609e8e9aaed4fb /examples/integration/src/main.rs
parent4dc5bffdfbfb09a017f35c12b484301fcf044876 (diff)
parentdcc4bb77e942f8550b0d7ee08fa5a2882fd22ecd (diff)
downloadiced-8493ccec7fd4639aef9e02ad3519a7a3707cd488.tar.gz
iced-8493ccec7fd4639aef9e02ad3519a7a3707cd488.tar.bz2
iced-8493ccec7fd4639aef9e02ad3519a7a3707cd488.zip
Merge branch 'intuitive-pane-grid-resize' into feature/pane-grid-titlebar
Diffstat (limited to 'examples/integration/src/main.rs')
-rw-r--r--examples/integration/src/main.rs17
1 files changed, 11 insertions, 6 deletions
diff --git a/examples/integration/src/main.rs b/examples/integration/src/main.rs
index 6b4aa968..db8b4366 100644
--- a/examples/integration/src/main.rs
+++ b/examples/integration/src/main.rs
@@ -154,14 +154,19 @@ pub fn main() {
&wgpu::CommandEncoderDescriptor { label: None },
);
- // We draw the scene first
let program = state.program();
- scene.draw(
- &mut encoder,
- &frame.view,
- program.background_color(),
- );
+ {
+ // We clear the frame
+ let mut render_pass = scene.clear(
+ &frame.view,
+ &mut encoder,
+ program.background_color(),
+ );
+
+ // Draw the scene
+ scene.draw(&mut render_pass);
+ }
// And then iced on top
let mouse_interaction = renderer.backend_mut().draw(