summaryrefslogtreecommitdiffstats
path: root/examples/integration_opengl
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-08-13 20:01:50 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-08-13 20:22:47 +0700
commit956780863646c1c17bc2670789459a4d311388fc (patch)
tree6484e81276add258a1a5a99155b8e326ed0997bb /examples/integration_opengl
parent77a0b68aa176782e95048795aec15c20a3e60ec6 (diff)
downloadiced-956780863646c1c17bc2670789459a4d311388fc.tar.gz
iced-956780863646c1c17bc2670789459a4d311388fc.tar.bz2
iced-956780863646c1c17bc2670789459a4d311388fc.zip
Fix formatting of `integration_opengl` example
Diffstat (limited to 'examples/integration_opengl')
-rw-r--r--examples/integration_opengl/src/scene.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/examples/integration_opengl/src/scene.rs b/examples/integration_opengl/src/scene.rs
index 596381b3..2a27be11 100644
--- a/examples/integration_opengl/src/scene.rs
+++ b/examples/integration_opengl/src/scene.rs
@@ -46,7 +46,10 @@ impl Scene {
let shader = gl
.create_shader(*shader_type)
.expect("Cannot create shader");
- gl.shader_source(shader, &format!("{}\n{}", shader_version, shader_source));
+ gl.shader_source(
+ shader,
+ &format!("{}\n{}", shader_version, shader_source),
+ );
gl.compile_shader(shader);
if !gl.get_shader_compile_status(shader) {
panic!(gl.get_shader_info_log(shader));
@@ -66,7 +69,10 @@ impl Scene {
}
gl.use_program(Some(program));
- Self { program, vertex_array }
+ Self {
+ program,
+ vertex_array,
+ }
}
}
@@ -90,4 +96,4 @@ impl Scene {
gl.delete_vertex_array(self.vertex_array);
}
}
-} \ No newline at end of file
+}