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