Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions samples/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down