Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some fprintf pointers added in "layer: Fix oldSwapchain when going in/out of XWayland bypassing" will crash when executed in the 32-bit WSI layer. GCC also warns about the pointer usage with: ``` 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} ``` To keep it simple, let's just cast the problematic pointers to void*. Closes: ValveSoftware#1718 Closes: ValveSoftware#1736
- Loading branch information