all: fix issue with glfw vulkan createWindowSurface; update to new for loop syntax (#713)
This commit is contained in:
parent
5aecbb0ee6
commit
2b6f3fb1d9
14 changed files with 28 additions and 27 deletions
|
|
@ -35,7 +35,7 @@ pub const Context = struct {
|
|||
std.meta.fieldInfo(backends.BackendContext, b).type,
|
||||
).Pointer.child.init(allocator, options);
|
||||
} else {
|
||||
inline for (std.meta.fields(Backend)) |b, i| {
|
||||
inline for (std.meta.fields(Backend), 0..) |b, i| {
|
||||
if (@typeInfo(
|
||||
std.meta.fieldInfo(backends.BackendContext, @intToEnum(Backend, b.value)).type,
|
||||
).Pointer.child.init(allocator, options)) |d| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue