diff --git a/src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp b/src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp index 4dd0d5966..6cb0911b4 100644 --- a/src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp +++ b/src/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cpp @@ -718,7 +718,7 @@ void EmitImage(ValueEmitContext& ctx, const IR::Inst& inst) { const auto sampled = MakeSampledImage(state, mem.resource, sampler_id, mip); const auto sample = state.builder.AllocateId(); std::vector words { - dref ? spv::OpImageDrefGather : spv::OpImageGather, result_type, + static_cast(dref ? spv::OpImageDrefGather : spv::OpImageGather), result_type, sample, sampled, coord, component_or_dref}; if (operand_mask != 0u) { words.push_back(operand_mask);