summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-16 00:29:35 +0200
committerLioncash <mathew1800@gmail.com>2019-10-16 00:29:37 +0200
commitb8a62adcf1034535353b4a1486a51a5775d209b5 (patch)
tree3d126d92aeda02726e2e78dc6192e74bc23871e1 /src/video_core
parentgl_shader_decompiler: Use std::holds_alternative within GenerateTexture() (diff)
downloadyuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar.gz
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar.bz2
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar.lz
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar.xz
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.tar.zst
yuzu-b8a62adcf1034535353b4a1486a51a5775d209b5.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 970cd0c76..82228b55d 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/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 {};
}