From 067600743043c846f0e761e715649d4454138de1 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 20 Aug 2024 14:24:12 -0700 Subject: [PATCH] graphics: drop model_buf after upload --- src/graphics.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/graphics.rs b/src/graphics.rs index 596be7fe..f430dee3 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -26,7 +26,6 @@ impl Indices{ } struct GraphicsModel{ indices:Indices, - model_buf:wgpu::Buffer, vertex_buf:wgpu::Buffer, bind_group:wgpu::BindGroup, instance_count:u32, @@ -501,7 +500,6 @@ impl GraphicsState{ model_graphics::Indices::U16(indices)=>Indices::new(device,indices,wgpu::IndexFormat::Uint16), }, bind_group, - model_buf, }); } }