Skip to content

Commit 31da357

Browse files
committed
fixed oepsie with copy paste
1 parent fb36ee8 commit 31da357

1 file changed

Lines changed: 0 additions & 26 deletions

File tree

gfx/common/vulkan_common.c

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,32 +1249,6 @@ static void vulkan_destroy_swapchain(gfx_ctx_vulkan_data_t *vk)
12491249
vk->context.num_recycled_acquire_semaphores = 0;
12501250
}
12511251

1252-
static void vulkan_acquire_clear_fences(gfx_ctx_vulkan_data_t *vk)
1253-
{
1254-
unsigned i;
1255-
for (i = 0; i < vk->context.num_swapchain_images; i++)
1256-
{
1257-
if (vk->context.swapchain_fences[i])
1258-
{
1259-
vkDestroyFence(vk->context.device,
1260-
vk->context.swapchain_fences[i], NULL);
1261-
vk->context.swapchain_fences[i] = VK_NULL_HANDLE;
1262-
}
1263-
vk->context.swapchain_fences_signalled[i] = false;
1264-
1265-
if (vk->context.swapchain_wait_semaphores[i])
1266-
{
1267-
struct vulkan_context *ctx = &vk->context;
1268-
VkSemaphore sem = vk->context.swapchain_wait_semaphores[i];
1269-
assert(ctx->num_recycled_acquire_semaphores < VULKAN_MAX_SWAPCHAIN_IMAGES);
1270-
ctx->swapchain_recycled_semaphores[ctx->num_recycled_acquire_semaphores++] = sem;
1271-
}
1272-
vk->context.swapchain_wait_semaphores[i] = VK_NULL_HANDLE;
1273-
}
1274-
1275-
vk->context.current_frame_index = 0;
1276-
}
1277-
12781252
static VkSemaphore vulkan_get_wsi_acquire_semaphore(struct vulkan_context *ctx)
12791253
{
12801254
VkSemaphore sem;

0 commit comments

Comments
 (0)