diff --git a/makefile b/makefile index fbf3b6a88..80f380e2b 100644 --- a/makefile +++ b/makefile @@ -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 diff --git a/tools/shaderc/shaderc_metal.cpp b/tools/shaderc/shaderc_metal.cpp index 516b2d1d6..99c9685ac 100644 --- a/tools/shaderc/shaderc_metal.cpp +++ b/tools/shaderc/shaderc_metal.cpp @@ -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); } diff --git a/tools/shaderc/shaderc_spirv.cpp b/tools/shaderc/shaderc_spirv.cpp index 7678cec39..fcbe21734 100644 --- a/tools/shaderc/shaderc_spirv.cpp +++ b/tools/shaderc/shaderc_spirv.cpp @@ -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); }