ShaderAsset: Fix shadowed variable

`samplers` is a member defined in ShaderAsset.h
This commit is contained in:
Joshua Vandaële 2025-12-27 10:26:00 +01:00
parent 6c7b60250d
commit f9fe82f19e
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406

View File

@ -256,7 +256,7 @@ bool RasterSurfaceShaderData::FromJson(const VideoCommon::CustomAssetLibrary::As
const auto parse_samplers =
[&](const char* name,
std::vector<VideoCommon::RasterSurfaceShaderData::SamplerData>* samplers) -> bool {
std::vector<VideoCommon::RasterSurfaceShaderData::SamplerData>* samplers_out) -> bool {
const auto samplers_iter = json.find(name);
if (samplers_iter == json.end())
{
@ -309,7 +309,7 @@ bool RasterSurfaceShaderData::FromJson(const VideoCommon::CustomAssetLibrary::As
asset_id);
return false;
}
samplers->push_back(std::move(sampler));
samplers_out->push_back(std::move(sampler));
}
return true;