Prevent 'may be used uninitialized' warning

This commit is contained in:
twinaphex 2021-03-22 15:46:34 +01:00
parent 611efea2bf
commit 32a6bd021c

View File

@ -1593,6 +1593,13 @@ static void vulkan_readback(vk_t *vk)
struct video_viewport vp;
VkMemoryBarrier barrier;
vp.x = 0;
vp.y = 0;
vp.width = 0;
vp.height = 0;
vp.full_width = 0;
vp.full_height = 0;
vulkan_viewport_info(vk, &vp);
region.bufferOffset = 0;