summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-12-07 20:01:50 +0100
committerLioncash <mathew1800@gmail.com>2020-12-07 20:01:52 +0100
commitedcbd478004a175e2e926fe109d70d0a731d56a8 (patch)
treeea57ef00a5a76dac22d6534bc43b1e1d1b05f9f6 /src/video_core
parentMerge pull request #5149 from comex/xx-map-interval (diff)
downloadyuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar.gz
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar.bz2
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar.lz
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar.xz
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.tar.zst
yuzu-edcbd478004a175e2e926fe109d70d0a731d56a8.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index 0c97a8988..ccbdfe967 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -878,7 +878,7 @@ private:
}
u32 binding = device.GetBaseBindings(stage).uniform_buffer;
- for (const auto [index, info] : ir.GetConstantBuffers()) {
+ for (const auto& [index, info] : ir.GetConstantBuffers()) {
const u32 num_elements = Common::AlignUp(info.GetSize(), 4) / 4;
const u32 size = info.IsIndirect() ? MAX_CONSTBUFFER_ELEMENTS : num_elements;
code.AddLine("layout (std140, binding = {}) uniform {} {{", binding++,