examples: text: correctly release frame_render_pass
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
786d0d50b1
commit
5ec9f89821
1 changed files with 4 additions and 3 deletions
|
|
@ -269,11 +269,12 @@ fn endFrame(
|
|||
) !void {
|
||||
// Finish render pass
|
||||
game.state().frame_render_pass.end();
|
||||
const label = @tagName(name) ++ ".tick";
|
||||
const label = @tagName(name) ++ ".endFrame";
|
||||
var command = game.state().frame_encoder.finish(&.{ .label = label });
|
||||
game.state().frame_encoder.release();
|
||||
defer command.release();
|
||||
core.state().queue.submit(&[_]*gpu.CommandBuffer{command});
|
||||
command.release();
|
||||
game.state().frame_encoder.release();
|
||||
game.state().frame_render_pass.release();
|
||||
|
||||
// Present the frame
|
||||
core.send(.present_frame, .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue