no reason to double reference

This commit is contained in:
Quaternions 2023-09-21 20:56:24 -07:00
parent 1c9bc347f6
commit 23857d38d9

View File

@ -645,7 +645,7 @@ impl strafe_client::framework::Example for GraphicsData {
_ => unreachable!(),
};
let skybox_image = ddsfile::Dds::read(&mut std::io::Cursor::new(&bytes)).unwrap();
let skybox_image = ddsfile::Dds::read(&mut std::io::Cursor::new(bytes)).unwrap();
let skybox_texture = device.create_texture_with_data(
queue,
@ -671,9 +671,9 @@ impl strafe_client::framework::Example for GraphicsData {
//squid
let squid_texture_view={
let bytes = &include_bytes!("../images/squid.dds")[..];
let bytes = include_bytes!("../images/squid.dds");
let image = ddsfile::Dds::read(&mut std::io::Cursor::new(&bytes)).unwrap();
let image = ddsfile::Dds::read(&mut std::io::Cursor::new(bytes)).unwrap();
let size = wgpu::Extent3d {
width: image.get_width(),