From 7415cb2d0254ccfe448ae3caab6fcdbed58d6c0f Mon Sep 17 00:00:00 2001 From: niki Date: Sat, 11 Feb 2023 20:25:54 +0100 Subject: [PATCH] vulkan: fix incorrect render pass hashing --- src/modules/graphics/vulkan/Graphics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/vulkan/Graphics.h b/src/modules/graphics/vulkan/Graphics.h index e5483a5e1..d92504741 100644 --- a/src/modules/graphics/vulkan/Graphics.h +++ b/src/modules/graphics/vulkan/Graphics.h @@ -98,7 +98,7 @@ struct RenderPassConfigurationHasher size_t operator()(const RenderPassConfiguration &configuration) const { size_t hashes[] = { - XXH32(configuration.colorAttachments.data(), configuration.colorAttachments.size() * sizeof(VkFormat), 0), + XXH32(configuration.colorAttachments.data(), configuration.colorAttachments.size() * sizeof(ColorAttachment), 0), XXH32(&configuration.staticData, sizeof(configuration.staticData), 0), }; return XXH32(hashes, sizeof(hashes), 0);