cleanup: unneeded code

This commit is contained in:
Nova
2025-07-12 21:35:43 -07:00
parent 00fdaf5b9f
commit 58328cd63b
4 changed files with 4 additions and 19 deletions

View File

@@ -141,7 +141,7 @@ impl Surface {
})
});
if let Some(new_tex) = buffer.update_tex(dmatexes, images, buffer.clone()) {
if let Some(new_tex) = buffer.update_tex(dmatexes, images) {
buffer.rendered.store(true, Ordering::Relaxed);
let material = materials.get_mut(material).unwrap();
material.base_color_texture.replace(new_tex);