Trying to fix empty rendering
This commit is contained in:
parent
83c358ad7e
commit
c3aafa1911
1 changed files with 25 additions and 23 deletions
|
@ -679,6 +679,9 @@ where
|
|||
|
||||
let index = *indices.mono();
|
||||
|
||||
self.copy_source_image(buffer_recorder, &images.mono()[index])?;
|
||||
|
||||
if self.vertex_count != 0 {
|
||||
if let Some(scene_buffer) = self.animator.animate(
|
||||
&content,
|
||||
self.vertex_count,
|
||||
|
@ -690,8 +693,6 @@ where
|
|||
.update(&[DescriptorWrite::storage_buffers(0, &[scene_buffer])])?;
|
||||
}
|
||||
|
||||
self.copy_source_image(buffer_recorder, &images.mono()[index])?;
|
||||
|
||||
self.renderer.process(
|
||||
buffer_recorder,
|
||||
&[
|
||||
|
@ -704,6 +705,7 @@ where
|
|||
self.animator.buffer(),
|
||||
index,
|
||||
)?;
|
||||
}
|
||||
|
||||
self.present_image(buffer_recorder, &images.mono()[index])?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue