mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 18:35:20 +00:00
Merge branch 'patch-1' into 'master'
addLineDirectivesAfterConditionalBlocks move check for npos to catch all npos See merge request OpenMW/openmw!277
This commit is contained in:
commit
cbb5549964
@ -34,6 +34,9 @@ namespace Shader
|
||||
foundPos = source.find_first_of("\n\r", foundPos);
|
||||
foundPos = source.find_first_not_of("\n\r", foundPos);
|
||||
|
||||
if (foundPos == std::string::npos)
|
||||
break;
|
||||
|
||||
size_t lineDirectivePosition = source.rfind("#line", foundPos);
|
||||
int lineNumber;
|
||||
if (lineDirectivePosition != std::string::npos)
|
||||
|
Loading…
x
Reference in New Issue
Block a user