summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-04-30 04:37:09 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-05-03 02:46:25 +0200
commit06b363c9b5ccb64cfe7ac4d001ae35bff30828de (patch)
tree313a8c5330426e050cb0a6577420e3e40f58ce0b /src/video_core/renderer_opengl
parentshader_ir/memory: Emit AL2P IR (diff)
downloadyuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar.gz
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar.bz2
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar.lz
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar.xz
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.tar.zst
yuzu-06b363c9b5ccb64cfe7ac4d001ae35bff30828de.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp3
1 files changed, 1 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 ef1a1995f..33c0edca9 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -317,8 +317,7 @@ private:
void DeclareInputAttributes() {
const auto& attributes = ir.GetInputAttributes();
- for (const auto element : attributes) {
- const Attribute::Index index = element.first;
+ for (const auto index : attributes) {
if (index < Attribute::Index::Attribute_0 || index > Attribute::Index::Attribute_31) {
// Skip when it's not a generic attribute
continue;