1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 08:53:52 +00:00

Added break when the operation failed

This commit is contained in:
florent.teppe 2022-08-03 19:21:48 +02:00
parent 8d194a1601
commit 4e7c1c5bef

View file

@ -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);
}