diff --git a/src/video_core/renderer_vulkan/pipeline_helper.h b/src/video_core/renderer_vulkan/pipeline_helper.h
index d2c3f11c1..a39459b2e 100644
--- a/src/video_core/renderer_vulkan/pipeline_helper.h
+++ b/src/video_core/renderer_vulkan/pipeline_helper.h
@@ -97,7 +97,7 @@ public:
         for ([[maybe_unused]] const auto& desc : info.texture_descriptors) {
             Add(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, stage);
         }
-        for (const auto& desc : info.image_descriptors) {
+        for ([[maybe_unused]] const auto& desc : info.image_descriptors) {
             Add(VK_DESCRIPTOR_TYPE_STORAGE_IMAGE, stage);
         }
     }