mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
addLineDirectivesAfterConditionalBlocks move check for npos to catch all npos
This commit is contained in:
parent
1995e43b46
commit
2ed12a398d
@ -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…
Reference in New Issue
Block a user