diff options
author | 2021-11-05 15:38:27 +0700 | |
---|---|---|
committer | 2021-11-05 15:38:27 +0700 | |
commit | 9fe65ed729c75a8401765cf373345aaba93352ca (patch) | |
tree | 33a1a87ccf6c8a18b4612f672f63929c34d34de6 /examples | |
parent | aca9d414d311f901cfe6494a28a48a563f17320b (diff) | |
download | iced-9fe65ed729c75a8401765cf373345aaba93352ca.tar.gz iced-9fe65ed729c75a8401765cf373345aaba93352ca.tar.bz2 iced-9fe65ed729c75a8401765cf373345aaba93352ca.zip |
Rename `Renderer::present` to `with_primitives`
Diffstat (limited to 'examples')
-rw-r--r-- | examples/integration_opengl/src/main.rs | 2 | ||||
-rw-r--r-- | examples/integration_wgpu/src/main.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs index f0ff2076..3b63f22e 100644 --- a/examples/integration_opengl/src/main.rs +++ b/examples/integration_opengl/src/main.rs @@ -159,7 +159,7 @@ pub fn main() { } // And then iced on top - renderer.present(|backend, primitive| { + renderer.with_primitives(|backend, primitive| { backend.present( &gl, primitive, diff --git a/examples/integration_wgpu/src/main.rs b/examples/integration_wgpu/src/main.rs index d1000748..35a69a7d 100644 --- a/examples/integration_wgpu/src/main.rs +++ b/examples/integration_wgpu/src/main.rs @@ -195,7 +195,7 @@ pub fn main() { } // And then iced on top - renderer.present(|backend, primitive| { + renderer.with_primitives(|backend, primitive| { backend.present( &mut device, &mut staging_belt, |