mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 18:15:35 +00:00
Added break when the operation failed
This commit is contained in:
parent
8d194a1601
commit
4e7c1c5bef
1 changed files with 2 additions and 1 deletions
|
@ -425,6 +425,7 @@ namespace Shader
|
||||||
if (!addLineDirectivesAfterConditionalBlocks(source)
|
if (!addLineDirectivesAfterConditionalBlocks(source)
|
||||||
|| !parseIncludes(std::filesystem::path(Manager.mPath), source, templateName, fileNumber, insertedPaths))
|
|| !parseIncludes(std::filesystem::path(Manager.mPath), source, templateName, fileNumber, insertedPaths))
|
||||||
{
|
{
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
templateIt->second = source;
|
templateIt->second = source;
|
||||||
|
|
||||||
|
@ -434,7 +435,7 @@ namespace Shader
|
||||||
std::vector<std::string> linkedShaderNames;
|
std::vector<std::string> linkedShaderNames;
|
||||||
if (!Manager.createSourceFromTemplate(shaderSource, linkedShaderNames, templateName, descriptor.second))
|
if (!Manager.createSourceFromTemplate(shaderSource, linkedShaderNames, templateName, descriptor.second))
|
||||||
{
|
{
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
shaderIt->second->setShaderSource(shaderSource);
|
shaderIt->second->setShaderSource(shaderSource);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue