commit | 9e55f633bcc8ce60500a5591b1b5b1a696ab6ee0 | [log] [tgz] |
---|---|---|
author | John Kessenich <cepheus@frii.com> | Wed Jul 15 10:03:39 2015 -0600 |
committer | John Kessenich <cepheus@frii.com> | Wed Jul 15 10:03:39 2015 -0600 |
tree | 1faad577dea568269839aabf11a4c2e66ac698c3 | |
parent | 279012d8c40b84893f4971993f8420123c97d105 [diff] [blame] |
Include specification revision as part of the version string.
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index d916f6e..7f9214c 100644 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp
@@ -2545,9 +2545,9 @@ void GetSpirvVersion(std::string& version) { - const int bufSize = 10; + const int bufSize = 100; char buf[bufSize]; - snprintf(buf, bufSize, "0.%d", spv::Version); + snprintf(buf, bufSize, "%d, Revision %d", spv::Version, spv::Revision); version = buf; }