Explorar el Código

gl_shader_decompiler: Pass by reference to GenerateTextureArgument()

Avoids an unnecessary atomic reference count increment and decrement.
Lioncash hace 6 años
padre
commit
b8a62adcf1
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 2 - 2
src/video_core/renderer_opengl/gl_shader_decompiler.cpp

@@ -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 {};
         }