From d3b07a1fad7f7202117cfa64ffb4c1ebb192c0b7 Mon Sep 17 00:00:00 2001 From: SCell555 Date: Tue, 30 May 2023 06:47:17 +0200 Subject: [PATCH] Do not error out on non-existing include paths when checking shaders for magic comments --- ShaderCompile/shaderparser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ShaderCompile/shaderparser.cpp b/ShaderCompile/shaderparser.cpp index 77bd957..a4e8ad2 100644 --- a/ShaderCompile/shaderparser.cpp +++ b/ShaderCompile/shaderparser.cpp @@ -130,8 +130,7 @@ static bool ReadFile( const fs::path& name, const std::string& srcPath, std::vec } reducedLine.clear(); - if ( !ReadFile( parent / incl, srcPath, includes, func ) ) - return false; + ReadFile( parent / incl, srcPath, includes, func ); continue; } reducedLine.clear();