fixing crashes
Test / build_and_test (push) Successful in 37s
Build / build (push) Successful in 53s

This commit is contained in:
2026-06-08 23:59:56 +02:00
parent dfa796c58f
commit a4888f4c96
4 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -120,12 +120,13 @@ pub inline fn destroy(self: *Self, allocator: std.mem.Allocator) void {
}
pub fn begin(self: *Self, info: *const vk.CommandBufferBeginInfo) VkError!void {
const implicitly_reset = self.state == .Executable;
const implicitly_reset = self.state == .Executable or self.state == .Invalid;
self.transitionState(.Recording, &.{ .Initial, .Executable, .Invalid }) catch return VkError.ValidationFailed;
if (implicitly_reset) {
try self.dispatch_table.reset(self, .{});
self.begin_info = null;
self.usage_flags = .{};
}
try self.dispatch_table.begin(self, info);