CustomPipeline: Resolve unused variable warning
We can just use holds_alternative here instead.
This commit is contained in:
1 parent
d96d2cd68c
commit
353ceedb50
1 file changed
+1
-2
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user