The open source OpenXR runtime

c/main: Always use the mode's extents when creating the surface master

This fixes a bug on NVIDIA Jetson. Note this isn't so much the NVIDIA Jetson fault, while the code was working on desktop, Monado did something wrong. What happned was that Monado would select a mode with one size, while then creating a VkSurface/VkSwapchain of a different size. This would work on hardware with scalers/panning modes. The NVIDIA Jetson apparently doesn't have support for that so failed when presenting. This patch makes sure that the VkSurface/VkSwapchain extents match the mode for all direct mode targets.


+48 -7
2 changed files