Commit 8f27576
fix(wayland): get surface extent from window instead of surface properties
On Wayland, VkSurfaceCapabilitiesKHR::currentExtent typically returns
{0xFFFFFFFF, 0xFFFFFFFF}, indicating that the application determines
the surface size rather than the compositor.
This patch fixes the issue by getting the actual surface extent from
the platform window on Wayland, ensuring the swapchain is properly
recreated with the correct dimensions.
Signed-off-by: Ryan Zhang <ryan.zhang@nxp.com>1 parent fa2cf45 commit 8f27576
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
| 607 | + | |
607 | 608 | | |
608 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
609 | 619 | | |
610 | 620 | | |
611 | 621 | | |
612 | 622 | | |
613 | 623 | | |
614 | 624 | | |
615 | 625 | | |
616 | | - | |
| 626 | + | |
617 | 627 | | |
618 | 628 | | |
619 | 629 | | |
620 | 630 | | |
621 | | - | |
| 631 | + | |
622 | 632 | | |
623 | | - | |
| 633 | + | |
624 | 634 | | |
625 | 635 | | |
626 | 636 | | |
| |||
0 commit comments