diff --git a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp index cd5431e43b3..ba30911a50b 100644 --- a/Source/Core/VideoCommon/Assets/ShaderAsset.cpp +++ b/Source/Core/VideoCommon/Assets/ShaderAsset.cpp @@ -252,23 +252,7 @@ bool RasterSurfaceShaderData::FromJson(const VideoCommon::CustomAssetLibrary::As } const auto& properties_array = properties_iter->second.get(); - if (!ParseShaderProperties(asset_id, properties_array, properties)) - return false; - - for (const auto& [code_name, property] : *properties) - { - if (source.find(code_name) == std::string::npos) - { - ERROR_LOG_FMT( - VIDEO, - "Asset '{}' failed to parse json, the code name '{}' defined in the metadata was not " - "found in the source for '{}'", - asset_id, code_name, name); - return false; - } - } - - return true; + return ParseShaderProperties(asset_id, properties_array, properties) }; const auto parse_samplers =