From 353ceedb50701b487bf975433f89788d72489930 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 31 Jan 2024 22:52:07 -0500 Subject: [PATCH] CustomPipeline: Resolve unused variable warning We can just use holds_alternative here instead. --- .../VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp index d6144adea3..549088042f 100644 --- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp +++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp @@ -197,8 +197,7 @@ void CustomPipeline::UpdatePixelData( { max_material_data_size += VideoCommon::MaterialProperty::GetMemorySize(property); VideoCommon::MaterialProperty::WriteAsShaderCode(m_last_generated_material_code, property); - if (auto* texture_asset_id = - std::get_if(&property.m_value)) + if (std::holds_alternative(property.m_value)) { texture_count++; }