modify return value

This commit is contained in:
caryliu
2019-06-28 09:43:56 +08:00
parent b7c55d0617
commit 97a2bb2cfa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ ValueMap* Effect::extractDefines()
return &_cachedNameValues;
}
std::unordered_map<std::string, Effect::Property> Effect::extractProperties()
std::unordered_map<std::string, Effect::Property>& Effect::extractProperties()
{
return _properties;
}
+1 -1
View File
@@ -128,7 +128,7 @@ public:
/*
* @brief Extracts all propertyps.
*/
std::unordered_map<std::string, Property> extractProperties();
std::unordered_map<std::string, Property>& extractProperties();
/**
* @brief Gets uniform property value by name.
*/