summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 01:50:37 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-03-13 01:50:37 +0100
commit3a10016e387f251718cf3aab7706a3d2e9c49277 (patch)
tree42948af697c5523305675e6335f3680dd377c7cc
parentgl_shader_decompiler: Fix regression in render target declarations (diff)
downloadyuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.gz
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.bz2
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.lz
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.xz
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.zst
yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.zip
-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 4edcbdaa8..54b38b73a 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -554,7 +554,7 @@ private:
}
const auto& info = registry.GetComputeInfo();
if (const u32 size = info.shared_memory_size_in_words; size > 0) {
- code.AddLine("shared uint smem[];", size);
+ code.AddLine("shared uint smem[{}];", size);
code.AddNewLine();
}
code.AddLine("layout (local_size_x = {}, local_size_y = {}, local_size_z = {}) in;",