Skip to content

Commit f6baa4b

Browse files
committed
shaderc: Show correct error line.
1 parent 69acf28 commit f6baa4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ BUILD_TOOLS_SUFFIX=Release
209209
EXE=
210210
else
211211
OS=linux
212-
BUILD_PROJECT_DIR=gmake-linux
212+
BUILD_PROJECT_DIR=gmake-linux-gcc
213213
BUILD_OUTPUT_DIR=linux64_gcc
214214
BUILD_TOOLS_CONFIG=release64
215215
BUILD_TOOLS_SUFFIX=Release

tools/shaderc/shaderc_metal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ namespace bgfx { namespace metal
427427
end = start + 20;
428428
}
429429

430-
printCode(_code.c_str(), line, start, end, column);
430+
printCode(_code.c_str(), bx::uint32_satsub(line, 1), start, end, column);
431431

432432
bx::write(_messageWriter, &messageErr, "%s\n", log);
433433
}

tools/shaderc/shaderc_spirv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ namespace bgfx { namespace spirv
528528
end = start + 20;
529529
}
530530

531-
printCode(_code.c_str(), line, start, end, column);
531+
printCode(_code.c_str(), bx::uint32_satsub(line, 1), start, end, column);
532532

533533
bx::write(_messageWriter, &messageErr, "%s\n", log);
534534
}

0 commit comments

Comments
 (0)