summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2025-12-27 10:26:00 +0100
committerJoshua Vandaƫle <joshua@vandaele.software>2025-12-29 11:12:07 +0100
commitf9fe82f19ec4b85ff901e268dc3fff98b3e5255a (patch)
treea7a191e8b9a577b73d1008e794b4e6d9879845b8 /Source/Core
parent6c7b60250d3b93971579736d5d46da804abc3f39 (diff)
ShaderAsset: Fix shadowed variable
`samplers` is a member defined in ShaderAsset.h
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/Assets/ShaderAsset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
index 99c9ed4ab0..04a9139212 100644
--- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
+++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp
@@ -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;