tests: Silence a bogus -Wmaybe-uninitialized.

This commit is contained in:
Elizabeth Figura 2024-10-24 17:36:20 -05:00 committed by Henri Verbeet
parent 3511b54040
commit 96c13aeb97
Notes: Henri Verbeet 2024-10-28 18:14:14 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1227

View File

@ -1355,8 +1355,8 @@ static struct resource_readback *vulkan_runner_get_resource_readback(struct shad
else else
{ {
struct resource_desc resolved_desc = resource->r.desc; struct resource_desc resolved_desc = resource->r.desc;
VkImage resolved_image = VK_NULL_HANDLE;
VkDeviceMemory resolved_memory; VkDeviceMemory resolved_memory;
VkImage resolved_image;
aspect_mask = (resource->r.desc.type == RESOURCE_TYPE_DEPTH_STENCIL) aspect_mask = (resource->r.desc.type == RESOURCE_TYPE_DEPTH_STENCIL)
? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_COLOR_BIT; ? VK_IMAGE_ASPECT_DEPTH_BIT : VK_IMAGE_ASPECT_COLOR_BIT;