engine: release encoder properly (#1068)

This commit is contained in:
Dustin Taylor 2023-10-16 22:27:39 -04:00 committed by GitHub
parent c03673ff05
commit 6d825284f7
Failed to generate hash of commit

View file

@ -78,6 +78,7 @@ pub const Engine = struct {
var command = engine.state.encoder.finish(null);
defer command.release();
engine.state.encoder.release();
engine.state.queue.submit(&[_]*gpu.CommandBuffer{command});
// Prepare for next pass