mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
CustomPipeline: Resolve unused variable warning
We can just use holds_alternative here instead.
This commit is contained in:
parent
d96d2cd68c
commit
353ceedb50
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user