fixing sneaky bug in blitter clear
Test / build_and_test (push) Successful in 1m4s
Build / build (push) Successful in 1m42s

This commit is contained in:
2026-05-27 00:47:12 +02:00
parent ae2bdd03a0
commit 6edb856d06
11 changed files with 74 additions and 36 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ fn readIndexBuffer(self: *Self, allocator: std.mem.Allocator, index_count: usize
const byte_offset = buffer.interface.offset + index_buffer.offset + (first_index * index_size);
const byte_size = index_count * index_size;
const index_memory: []const u8 = @as([*]const u8, @ptrCast(@alignCast(try buffer_memory.map(byte_offset, byte_size))))[0..byte_size];
const index_memory: []const u8 = try buffer_memory.map(byte_offset, byte_size);
const indices = allocator.alloc(i32, index_count) catch return VkError.OutOfDeviceMemory;
for (indices, 0..) |*index, i| {