mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-15 08:23:17 -03:00
ShaderAsset: Fix shadowed variable
`samplers` is a member defined in ShaderAsset.h
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user