From 452157d370373b571b18a8c44f6c673bb7021971 Mon Sep 17 00:00:00 2001 From: Dmitrii Tolmachev Date: Mon, 15 Jan 2024 17:09:06 +0100 Subject: [PATCH] bugfix (Segmentation fault with 1.3.3 #150) --- .../vkFFT_API_handles/vkFFT_UpdateBuffers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vkFFT/vkFFT/vkFFT_PlanManagement/vkFFT_API_handles/vkFFT_UpdateBuffers.h b/vkFFT/vkFFT/vkFFT_PlanManagement/vkFFT_API_handles/vkFFT_UpdateBuffers.h index 7870152..dcf7b4d 100644 --- a/vkFFT/vkFFT/vkFFT_PlanManagement/vkFFT_API_handles/vkFFT_UpdateBuffers.h +++ b/vkFFT/vkFFT/vkFFT_PlanManagement/vkFFT_API_handles/vkFFT_UpdateBuffers.h @@ -685,7 +685,7 @@ static inline VkFFTResult VkFFTCheckUpdateBufferSet(VkFFTApplication* app, VkFFT if ((app->configuration.isOutputFormatted) && (app->configuration.outputBuffer == 0)) { performBufferSetUpdate = 0; } - if ((app->configuration.userTempBuffer) && (app->configuration.tempBuffer == 0)) { + if (((app->configuration.userTempBuffer) && (app->configuration.tempBuffer == 0)) || (app->configuration.allocateTempBuffer)){ performBufferSetUpdate = 0; } if ((app->configuration.performConvolution) && (app->configuration.kernel == 0)) {