Fix case of empty textables

This commit is contained in:
hodasemi 2023-01-26 09:24:53 +01:00
parent d563a6c089
commit a4bf0d254a

View file

@ -981,6 +981,11 @@ impl GuiHandler {
buffer_recorder.bind_vertex_buffer(&self.text_to_screen.buffer);
buffer_recorder
.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);