Include specification revision as part of the version string.

This commit is contained in:
John Kessenich
2015-07-15 10:03:39 -06:00
parent 279012d8c4
commit 9e55f633bc
2 changed files with 4 additions and 2 deletions

View File

@@ -2545,9 +2545,9 @@ namespace glslang {
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;
}