Shader: Fix some errors

This commit is contained in:
SirLynix
2022-03-29 08:42:08 +02:00
committed by Jérôme Leclercq
parent 1afc599e3d
commit 35f6240786
5 changed files with 62 additions and 55 deletions

View File

@@ -58,7 +58,7 @@ namespace Nz::ShaderLang
assert(rightLocation.endLine >= startLine);
endLine = rightLocation.endLine;
assert(rightLocation.endLine > startLine || rightLocation.endColumn >= startColumn);
endColumn = endColumn;
endColumn = rightLocation.endColumn;
}
inline SourceLocation SourceLocation::BuildFromTo(const SourceLocation& leftSource, const SourceLocation& rightSource)