From 74c6f9a3dc20380b6c572a7759cee35b01b9d1bc Mon Sep 17 00:00:00 2001 From: parzers <131337214+parzers@users.noreply.github.com> Date: Tue, 18 Feb 2025 12:13:15 +0100 Subject: [PATCH] Simplify texture example --- samples/texture.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/samples/texture.rs b/samples/texture.rs index c95f89de..945f217e 100644 --- a/samples/texture.rs +++ b/samples/texture.rs @@ -8,13 +8,9 @@ fn main() { let opt = options::Opt::from_args(); let (mut rl, thread) = opt.open_window("Texture"); let (_w, _h) = (opt.width, opt.height); - let i = Image::load_image("static/billboard.png").expect("could not load image billboard"); - let _ = rl + let t = rl .load_texture(&thread, "static/billboard.png") .expect("could not load texture billboard"); - let t = rl - .load_texture_from_image(&thread, &i) - .expect("could not load texture from image"); rl.set_target_fps(60); while !rl.window_should_close() {