fixed memory bug introduced by 48796a0fa3
This commit is contained in:
parent
1d64275dee
commit
3a210a6959
1 changed files with 11 additions and 11 deletions
|
|
@ -138,7 +138,7 @@ pub const Instance = struct {
|
|||
.pApplicationInfo = &app_info,
|
||||
.enabledExtensionCount = @intCast(extensions.len),
|
||||
.ppEnabledExtensionNames = extensions.ptr,
|
||||
.enabledLayerCount = @intCast(newLayers.capacity),
|
||||
.enabledLayerCount = @intCast(newLayers.items.len),
|
||||
.ppEnabledLayerNames = newLayers.items.ptr,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue