mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
shaderc: Show correct error line.
This commit is contained in:
2
makefile
2
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
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user