Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fprintf pointers added in "layer: Fix oldSwapchain when going in/out of XWayland bypassing" will crash when executed in the 32-bit WSI layer. The compiler also warns about pointer usage: 1085 | fprintf(stderr, "[Gamescope WSI] Destroying swapchain: %p\n", swapchain); | ~^ ~~~~~~~~~ | | | | void* VkSwapchainKHR {aka long long unsigned int} | %lld 1087 | fprintf(stderr, "[Gamescope WSI] Destroyed swapchain: %p\n", swapchain); | ~^ ~~~~~~~~~ | | | | void* VkSwapchainKHR {aka long long unsigned int} | %lld 1167 | fprintf(stderr, "[Gamescope WSI] Creating swapchain for xid: 0x%0x - oldSwapchain: %p - provided minImageCount: %u - minImageCount: %u - format: %s - colorspace: %s - flip: %s\n", | ~^ | | | void* | %lld 1168 | gamescopeSurface->window, 1169 | pCreateInfo->oldSwapchain, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | long long unsigned int 1248 | fprintf(stderr, "[Gamescope WSI] Created swapchain for xid: 0x%0x swapchain: %p - imageCount: %u\n", | ~^ | | | void* | %lld 1249 | gamescopeSurface->window, 1250 | *pSwapchain, | ~~~~~~~~~~~ | | | VkSwapchainKHR {aka long long unsigned int} Address these issues by casting the pointers to void, ensuring both 64-bit and 32-bit layers perform as expected. Closes: ValveSoftware#1718 Closes: ValveSoftware#1736
- Loading branch information