diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-16 00:33:06 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-01-16 01:12:57 +0100 |
commit | c3c7603076d71789b9268f456b31fac2da157b55 (patch) | |
tree | b62f3854b64c00562e3be47bb2da458da4976a94 /src/video_core | |
parent | Merge pull request #5358 from ReinUsesLisp/rename-insert-padding (diff) | |
download | yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.gz yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.bz2 yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.lz yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.xz yuzu-c3c7603076d71789b9268f456b31fac2da157b55.tar.zst yuzu-c3c7603076d71789b9268f456b31fac2da157b55.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 89cbe01ad..61d52b961 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp @@ -1334,7 +1334,10 @@ private: } if (const auto comment = std::get_if<CommentNode>(&*node)) { - Name(OpUndef(t_void), comment->GetText()); + if (device.HasDebuggingToolAttached()) { + // We should insert comments with OpString instead of using named variables + Name(OpUndef(t_int), comment->GetText()); + } return {}; } |