We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dc2ae6 commit 1029f51Copy full SHA for 1029f51
libavutil/vulkan.c
@@ -2595,10 +2595,12 @@ void ff_vk_shader_free(FFVulkanContext *s, FFVulkanShader *shd)
2595
av_free(set->binding_offset);
2596
}
2597
2598
- for (int i = 0; i < shd->nb_descriptor_sets; i++)
2599
- if (shd->desc_layout[i])
2600
- vk->DestroyDescriptorSetLayout(s->hwctx->act_dev, shd->desc_layout[i],
2601
- s->hwctx->alloc);
+ if (shd->desc_layout) {
+ for (int i = 0; i < shd->nb_descriptor_sets; i++)
+ if (shd->desc_layout[i])
+ vk->DestroyDescriptorSetLayout(s->hwctx->act_dev, shd->desc_layout[i],
2602
+ s->hwctx->alloc);
2603
+ }
2604
2605
av_freep(&shd->desc_pool_size);
2606
av_freep(&shd->desc_layout);
0 commit comments