From 2efd2f543fac43fc0d0f02c50e7c526f11c33a88 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sat, 24 Apr 2021 15:23:43 +0100 Subject: [PATCH] c/main: Tidy code in comp_target_swapchain (NFC) --- src/xrt/compositor/main/comp_target_swapchain.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/xrt/compositor/main/comp_target_swapchain.c b/src/xrt/compositor/main/comp_target_swapchain.c index 3f577766e..f322c474e 100644 --- a/src/xrt/compositor/main/comp_target_swapchain.c +++ b/src/xrt/compositor/main/comp_target_swapchain.c @@ -118,9 +118,7 @@ comp_target_swapchain_create_images(struct comp_target *ct, // Sanity check. ret = vk->vkGetPhysicalDeviceSurfaceSupportKHR(vk->physical_device, 0, cts->surface.handle, &supported); if (!supported) { - COMP_ERROR(ct->c, - "vkGetPhysicalDeviceSurfaceSupportKHR: surface not " - "supported! '%s'", + COMP_ERROR(ct->c, "vkGetPhysicalDeviceSurfaceSupportKHR: surface not supported! '%s'", vk_result_string(ret)); } @@ -154,9 +152,7 @@ comp_target_swapchain_create_images(struct comp_target *ct, if (surface_caps.currentTransform & VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR || surface_caps.currentTransform & VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR) { - COMP_DEBUG(ct->c, - "Swapping width and height," - "since we are going to pre rotate"); + COMP_DEBUG(ct->c, "Swapping width and height, since we are going to pre rotate"); uint32_t w2 = extent.width; uint32_t h2 = extent.height; extent.width = h2;