gl_shader_decompiler: Pass by reference to GenerateTextureArgument()

Avoids an unnecessary atomic reference count increment and decrement.
merge-requests/60/head
Lioncash 2019-10-15 18:29:35 +07:00
parent d1d7ce74d2
commit b8a62adcf1
1 changed files with 2 additions and 2 deletions

@ -1158,8 +1158,8 @@ private:
return expr + ')';
}
std::string GenerateTextureArgument(TextureArgument argument) {
const auto [type, operand] = argument;
std::string GenerateTextureArgument(const TextureArgument& argument) {
const auto& [type, operand] = argument;
if (operand == nullptr) {
return {};
}