diff --git a/src/blue_noise.cpp b/src/blue_noise.cpp index bb82107..1a454cc 100644 --- a/src/blue_noise.cpp +++ b/src/blue_noise.cpp @@ -1617,8 +1617,7 @@ image::Bl dither::blue_noise(int width, int height, int threads, if (!internal::vulkan_create_buffer( device, phys_device, - ((width * height + 1) / 2) * - sizeof(dither::internal::FloatAndIndex), + width * height * sizeof(dither::internal::FloatAndIndex), VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, min_out_buf, @@ -1639,8 +1638,7 @@ image::Bl dither::blue_noise(int width, int height, int threads, if (!internal::vulkan_create_buffer( device, phys_device, - ((width * height + 1) / 2) * - sizeof(dither::internal::FloatAndIndex), + width * height * sizeof(dither::internal::FloatAndIndex), VK_BUFFER_USAGE_STORAGE_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_SRC_BIT, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, max_out_buf,