core: x11: clarify X11 multi-threading (#1297)
This commit is contained in:
parent
06f61044fb
commit
2608e1313c
2 changed files with 10 additions and 19 deletions
|
|
@ -265,7 +265,11 @@ fn init(core: *Mod, entities: *mach.Entities.Mod) !void {
|
|||
.format = .bgra8_unorm,
|
||||
.width = @intCast(state.platform.size.width),
|
||||
.height = @intCast(state.platform.size.height),
|
||||
.present_mode = .mailbox,
|
||||
.present_mode = switch (state.platform.vsync_mode) {
|
||||
.none => .immediate,
|
||||
.double => .fifo,
|
||||
.triple => .mailbox,
|
||||
},
|
||||
};
|
||||
state.swap_chain = state.device.createSwapChain(state.surface, &state.descriptor);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue