mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-27 05:36:42 +00:00
gl_shader_decompiler: Pass by reference to GenerateTextureArgument()
Avoids an unnecessary atomic reference count increment and decrement.
This commit is contained in:
parent
d1d7ce74d2
commit
b8a62adcf1
|
@ -1158,8 +1158,8 @@ private:
|
||||||
return expr + ')';
|
return expr + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GenerateTextureArgument(TextureArgument argument) {
|
std::string GenerateTextureArgument(const TextureArgument& argument) {
|
||||||
const auto [type, operand] = argument;
|
const auto& [type, operand] = argument;
|
||||||
if (operand == nullptr) {
|
if (operand == nullptr) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue