Browse Source

fix compile error

Sasha Szpakowski 10 months ago
parent
commit
3a6833ffb5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/vulkan/Graphics.cpp

+ 2 - 2
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;