summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_arb_decompiler.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-07-21 06:52:27 +0200
committerLioncash <mathew1800@gmail.com>2020-07-21 06:57:25 +0200
commite17fb5ee97dab16c73b017393b6544847e9aef67 (patch)
tree05ac8d70e8516d27062f4940e64d905c95c2b6c5 /src/video_core/renderer_opengl/gl_arb_decompiler.cpp
parentMerge pull request #4376 from ogniK5377/dark-wait-tree (diff)
downloadyuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.gz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.bz2
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.lz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.xz
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.tar.zst
yuzu-e17fb5ee97dab16c73b017393b6544847e9aef67.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_arb_decompiler.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp
index eb5158407..3c17d080e 100644
--- a/src/video_core/renderer_opengl/gl_arb_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_arb_decompiler.cpp
@@ -1260,13 +1260,6 @@ std::string ARBDecompiler::Visit(const Node& node) {
return "{0, 0, 0, 0}.x";
}
- const auto buffer_index = [this, &abuf]() -> std::string {
- if (stage != ShaderType::Geometry) {
- return "";
- }
- return fmt::format("[{}]", Visit(abuf->GetBuffer()));
- };
-
const Attribute::Index index = abuf->GetIndex();
const u32 element = abuf->GetElement();
const char swizzle = Swizzle(element);
@@ -1375,7 +1368,7 @@ std::string ARBDecompiler::Visit(const Node& node) {
return {};
}
- if (const auto cmt = std::get_if<CommentNode>(&*node)) {
+ if ([[maybe_unused]] const auto cmt = std::get_if<CommentNode>(&*node)) {
// Uncommenting this will generate invalid code. GLASM lacks comments.
// AddLine("// {}", cmt->GetText());
return {};