From a9f5f84a768089e75c6bcd3e1064052629b9704c Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 21 Jul 2016 18:58:57 +0200 Subject: [PATCH] Fix narrowing warning for VkImageBlit taking int32_ts --- renderdoc/driver/vulkan/vk_replay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderdoc/driver/vulkan/vk_replay.cpp b/renderdoc/driver/vulkan/vk_replay.cpp index 53371a856..0753bbaa0 100644 --- a/renderdoc/driver/vulkan/vk_replay.cpp +++ b/renderdoc/driver/vulkan/vk_replay.cpp @@ -3003,11 +3003,11 @@ void VulkanReplay::FlipOutputWindow(uint64_t id) VkImageBlit blit = { {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, { - {0, 0, 0}, {outw.width, outw.height, 1}, + {0, 0, 0}, {(int32_t)outw.width, (int32_t)outw.height, 1}, }, {VK_IMAGE_ASPECT_COLOR_BIT, 0, 0, 1}, { - {0, 0, 0}, {outw.width, outw.height, 1}, + {0, 0, 0}, {(int32_t)outw.width, (int32_t)outw.height, 1}, }, };