Fix case of empty textables
This commit is contained in:
parent
d563a6c089
commit
a4bf0d254a
1 changed files with 5 additions and 0 deletions
|
@ -981,6 +981,11 @@ impl GuiHandler {
|
||||||
buffer_recorder.bind_vertex_buffer(&self.text_to_screen.buffer);
|
buffer_recorder.bind_vertex_buffer(&self.text_to_screen.buffer);
|
||||||
buffer_recorder
|
buffer_recorder
|
||||||
.draw_complete_single_instance(self.text_to_screen.buffer.size() as u32);
|
.draw_complete_single_instance(self.text_to_screen.buffer.size() as u32);
|
||||||
|
} else {
|
||||||
|
// dummy advance sub passes
|
||||||
|
// since ending render pass and not being in the last sub pass seems to be an error
|
||||||
|
render_target.next_subpass(buffer_recorder, VK_SUBPASS_CONTENTS_INLINE);
|
||||||
|
render_target.next_subpass(buffer_recorder, VK_SUBPASS_CONTENTS_INLINE);
|
||||||
}
|
}
|
||||||
|
|
||||||
render_target.end(buffer_recorder);
|
render_target.end(buffer_recorder);
|
||||||
|
|
Loading…
Reference in a new issue