Fix a bug where uniform/varying pointers aren't mangled differently

This commit is contained in:
Matt Pharr
2011-11-29 15:41:01 -08:00
parent b1ae307163
commit bbb32c0c5d

View File

@@ -832,7 +832,8 @@ PointerType::Mangle() const {
if (baseType == NULL)
return "";
return std::string("ptr<") + baseType->Mangle() + std::string(">");
return (isUniform ? std::string("uptr<") : std::string("vptr<")) +
baseType->Mangle() + std::string(">");
}