diff --git a/CHANGELOG_VULKANO.md b/CHANGELOG_VULKANO.md index c41dfbd3..4d06bc44 100644 --- a/CHANGELOG_VULKANO.md +++ b/CHANGELOG_VULKANO.md @@ -2,6 +2,7 @@ - Added support for `ImageAspect` and YV12/NV12 formats, for use with the UnsafeImage API. - Added basic VK_KHR_external_memory, VK_KHR_external_memory_fd, and VK_EXT_external_memory_dma_buf support. +- Fixed potential segmentation fault in `ComputePipeline` when referencing `PipelineCache` objects. # Version 0.20.0 (2020-12-26) diff --git a/vulkano/src/pipeline/compute_pipeline.rs b/vulkano/src/pipeline/compute_pipeline.rs index be18b6d7..4972c680 100644 --- a/vulkano/src/pipeline/compute_pipeline.rs +++ b/vulkano/src/pipeline/compute_pipeline.rs @@ -163,7 +163,7 @@ impl ComputePipeline { }; let cache_handle = match cache { - Some(cache) => cache.internal_object(), + Some(ref cache) => cache.internal_object(), None => vk::NULL_HANDLE, };