diff --git a/src/modules/graphics/vulkan/Graphics.cpp b/src/modules/graphics/vulkan/Graphics.cpp index c9ac8368c..a9571900b 100644 --- a/src/modules/graphics/vulkan/Graphics.cpp +++ b/src/modules/graphics/vulkan/Graphics.cpp @@ -1210,8 +1210,8 @@ static bool computeDispatchBarrierFlags(Shader *shader, VkAccessFlags &dstAccess // TODO: this is pretty messy. VkAccessFlags texAccessFlags = 0; VkPipelineStageFlags texStageFlags = 0; - const PixelFormatInfo &info = getPixelFormatInfo(tex->getPixelFormat()); - Vulkan::setImageLayoutTransitionOptions(false, tex->isRenderTarget(), info, VK_IMAGE_LAYOUT_GENERAL, texAccessFlags, texStageFlags); + const PixelFormatInfo &formatInfo = getPixelFormatInfo(tex->getPixelFormat()); + Vulkan::setImageLayoutTransitionOptions(false, tex->isRenderTarget(), formatInfo, VK_IMAGE_LAYOUT_GENERAL, texAccessFlags, texStageFlags); dstAccessFlags |= texAccessFlags; dstStageFlags |= texStageFlags;