mach: correctly fire resize event on startup once again
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4429be4f5f
commit
fa1ddc4f0d
1 changed files with 1 additions and 3 deletions
|
|
@ -139,9 +139,7 @@ pub const Platform = struct {
|
|||
core.surface = surface;
|
||||
core.current_desc = descriptor;
|
||||
core.target_desc = descriptor;
|
||||
core.swap_chain = core.device.createSwapChain(core.surface, &core.target_desc);
|
||||
// TODO: should resize fire on startup here? Might be nice for consistency
|
||||
|
||||
core.swap_chain = null;
|
||||
const cursor_pos = try window.getCursorPos();
|
||||
|
||||
return Platform{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue