shaderc: Show correct error line.

This commit is contained in:
Бранимир Караџић
2024-11-25 19:39:17 -08:00
parent 69acf28813
commit f6baa4bdaf
3 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ BUILD_TOOLS_SUFFIX=Release
EXE=
else
OS=linux
BUILD_PROJECT_DIR=gmake-linux
BUILD_PROJECT_DIR=gmake-linux-gcc
BUILD_OUTPUT_DIR=linux64_gcc
BUILD_TOOLS_CONFIG=release64
BUILD_TOOLS_SUFFIX=Release

View File

@@ -427,7 +427,7 @@ namespace bgfx { namespace metal
end = start + 20;
}
printCode(_code.c_str(), line, start, end, column);
printCode(_code.c_str(), bx::uint32_satsub(line, 1), start, end, column);
bx::write(_messageWriter, &messageErr, "%s\n", log);
}

View File

@@ -528,7 +528,7 @@ namespace bgfx { namespace spirv
end = start + 20;
}
printCode(_code.c_str(), line, start, end, column);
printCode(_code.c_str(), bx::uint32_satsub(line, 1), start, end, column);
bx::write(_messageWriter, &messageErr, "%s\n", log);
}