summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/README.md2
-rw-r--r--examples/integration_opengl/src/main.rs3
-rw-r--r--examples/integration_opengl/src/scene.rs2
3 files changed, 5 insertions, 2 deletions
diff --git a/examples/README.md b/examples/README.md
index 1b9f4b56..c6d2d949 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -2,7 +2,7 @@
__Iced moves fast and the `master` branch can contain breaking changes!__ If
you want to learn about a specific release, check out [the release list].
-[the release list]: https://github.com/hecrj/iced/releases
+[the release list]: https://github.com/iced-rs/iced/releases
## [Tour](tour)
A simple UI tour that can run both on native platforms and the web! It showcases different widgets that can be built using Iced.
diff --git a/examples/integration_opengl/src/main.rs b/examples/integration_opengl/src/main.rs
index 3b63f22e..551aba67 100644
--- a/examples/integration_opengl/src/main.rs
+++ b/examples/integration_opengl/src/main.rs
@@ -73,8 +73,9 @@ pub fn main() {
);
let mut resized = false;
+ let scene = Scene::new(&gl, &shader_version);
+
event_loop.run(move |event, _, control_flow| {
- let scene = Scene::new(&gl, &shader_version);
*control_flow = ControlFlow::Wait;
match event {
diff --git a/examples/integration_opengl/src/scene.rs b/examples/integration_opengl/src/scene.rs
index ccca0d29..a1245bf2 100644
--- a/examples/integration_opengl/src/scene.rs
+++ b/examples/integration_opengl/src/scene.rs
@@ -86,6 +86,8 @@ impl Scene {
pub fn draw(&self, gl: &glow::Context) {
unsafe {
+ gl.bind_vertex_array(Some(self.vertex_array));
+ gl.use_program(Some(self.program));
gl.draw_arrays(glow::TRIANGLES, 0, 3);
}
}