diff options
| author | 2020-03-12 21:50:37 -0300 | |
|---|---|---|
| committer | 2020-03-12 21:50:37 -0300 | |
| commit | 3a10016e387f251718cf3aab7706a3d2e9c49277 (patch) | |
| tree | 42948af697c5523305675e6335f3680dd377c7cc | |
| parent | gl_shader_decompiler: Fix regression in render target declarations (diff) | |
| download | yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.gz yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.tar.xz yuzu-3a10016e387f251718cf3aab7706a3d2e9c49277.zip | |
gl_shader_decompiler: Add missing {} on smem GLSL emission
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 2 |
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: | |||
| 554 | } | 554 | } |
| 555 | const auto& info = registry.GetComputeInfo(); | 555 | const auto& info = registry.GetComputeInfo(); |
| 556 | if (const u32 size = info.shared_memory_size_in_words; size > 0) { | 556 | if (const u32 size = info.shared_memory_size_in_words; size > 0) { |
| 557 | code.AddLine("shared uint smem[];", size); | 557 | code.AddLine("shared uint smem[{}];", size); |
| 558 | code.AddNewLine(); | 558 | code.AddNewLine(); |
| 559 | } | 559 | } |
| 560 | code.AddLine("layout (local_size_x = {}, local_size_y = {}, local_size_z = {}) in;", | 560 | code.AddLine("layout (local_size_x = {}, local_size_y = {}, local_size_z = {}) in;", |