mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 09:39:51 +00:00
Added break when the operation failed
This commit is contained in:
parent
8d194a1601
commit
4e7c1c5bef
@ -425,6 +425,7 @@ namespace Shader
|
||||
if (!addLineDirectivesAfterConditionalBlocks(source)
|
||||
|| !parseIncludes(std::filesystem::path(Manager.mPath), source, templateName, fileNumber, insertedPaths))
|
||||
{
|
||||
break;
|
||||
}
|
||||
templateIt->second = source;
|
||||
|
||||
@ -434,7 +435,7 @@ namespace Shader
|
||||
std::vector<std::string> linkedShaderNames;
|
||||
if (!Manager.createSourceFromTemplate(shaderSource, linkedShaderNames, templateName, descriptor.second))
|
||||
{
|
||||
|
||||
break;
|
||||
}
|
||||
shaderIt->second->setShaderSource(shaderSource);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user