This commit is contained in:
Máté Homolya 2025-07-18 11:11:07 +02:00 committed by GitHub
commit a7bcc14d4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1098,7 +1098,11 @@ impl RenderMeshInstanceGpuBuilder {
mesh_vertex_slice.range.start, mesh_vertex_slice.range.start,
mesh_vertex_slice.range.end - mesh_vertex_slice.range.start, mesh_vertex_slice.range.end - mesh_vertex_slice.range.start,
), ),
None => (0, 0), None => {
// GPU memory for this mesh hasn't been allocated yet. Retry next frame.
meshes_to_reextract_next_frame.insert(entity);
return None;
}
}; };
let (mesh_is_indexed, first_index_index, index_count) = let (mesh_is_indexed, first_index_index, index_count) =
match mesh_allocator.mesh_index_slice(&self.shared.mesh_asset_id) { match mesh_allocator.mesh_index_slice(&self.shared.mesh_asset_id) {