Browse Source

gl_shader_decompiler: Pass by reference to GenerateTextureArgument()

Avoids an unnecessary atomic reference count increment and decrement.
pull/15/merge
Lioncash 6 years ago
parent
commit
b8a62adcf1
  1. 4
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

4
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@ -1158,8 +1158,8 @@ private:
return expr + ')'; 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) { if (operand == nullptr) {
return {}; return {};
} }

Loading…
Cancel
Save