aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/draw/context.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:20 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:20 +0100
commit38ec1aa6b22e7e02c4b25c8fbf376b7cf5885009 (patch)
tree94dd21a9d1d6d567a8100e53796face54bb8bdad /stockton-render/src/draw/context.rs
parentb31035bf03e0843fb516bee065f9a010424ba546 (diff)
fix(render): fix draw call outside render pass
Diffstat (limited to 'stockton-render/src/draw/context.rs')
-rw-r--r--stockton-render/src/draw/context.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/stockton-render/src/draw/context.rs b/stockton-render/src/draw/context.rs
index 7a20651..fced5e8 100644
--- a/stockton-render/src/draw/context.rs
+++ b/stockton-render/src/draw/context.rs
@@ -656,7 +656,6 @@ impl<'a> RenderingContext<'a> {
SubpassContents::Inline
);
buffer.bind_graphics_pipeline(&self.pipeline);
- buffer.end_render_pass();
buffer.bind_vertex_buffers(0, vbufs);
buffer.bind_index_buffer(IndexBufferView {
@@ -666,6 +665,7 @@ impl<'a> RenderingContext<'a> {
});
buffer.draw_indexed(0..6, 0, 0..1);
+ buffer.end_render_pass();
}
buffer.finish();
};