diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2024-01-31 22:52:07 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2024-02-01 23:02:45 -0500 |
| commit | 353ceedb50701b487bf975433f89788d72489930 (patch) | |
| tree | 6f695d642e520dec95ba351e1fc4cd2124e5b4dc /Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp | |
| parent | d96d2cd68c60415d5658ffa27496e47b2dce7c72 (diff) | |
CustomPipeline: Resolve unused variable warning
We can just use holds_alternative here instead.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp | 3 |
1 files changed, 1 insertions, 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<VideoCommon::CustomAssetLibrary::AssetID>(&property.m_value)) + if (std::holds_alternative<VideoCommon::CustomAssetLibrary::AssetID>(property.m_value)) { texture_count++; } |
