This commit is contained in:
2021-03-11 22:38:05 +01:00
parent 9848fbc183
commit da62d6ab67
3 changed files with 2 additions and 8 deletions

View File

@@ -166,9 +166,7 @@ impl TestGame {
assert!(is_dxt1);
println!("Texture width: {}, height: {}, bytes: {}", tex_width, tex_height, tex_byte_count);
let data_start: usize = 124;
let data_end: usize = data_start + tex_byte_count as usize;
renderer.upload_texture(&tex_bytes[data_start..data_end], tex_width, tex_height, vulkano::format::Format::BC1_RGBASrgbBlock, renderer.device.clone());
renderer.upload_texture(&tex_bytes, tex_width, tex_height, vulkano::format::Format::BC1_RGBUnormBlock, renderer.device.clone());
self.texture_index_counter += 1;
if self.log_config.mesh_load_info {