forked from StrafesNET/strafe-client
no reason to double reference
This commit is contained in:
parent
1c9bc347f6
commit
23857d38d9
@ -645,7 +645,7 @@ impl strafe_client::framework::Example for GraphicsData {
|
|||||||
_ => unreachable!(),
|
_ => 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(
|
let skybox_texture = device.create_texture_with_data(
|
||||||
queue,
|
queue,
|
||||||
@ -671,9 +671,9 @@ impl strafe_client::framework::Example for GraphicsData {
|
|||||||
|
|
||||||
//squid
|
//squid
|
||||||
let squid_texture_view={
|
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 {
|
let size = wgpu::Extent3d {
|
||||||
width: image.get_width(),
|
width: image.get_width(),
|
||||||
|
Loading…
Reference in New Issue
Block a user