summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-12-14 03:35:29 +0100
committerGitHub <noreply@github.com>2019-12-14 03:35:29 +0100
commit2b650543c652623294fe4d7fe096ae0d4820b147 (patch)
treee513ea4b2408307d180bfcba060be1ae92503aaa
parentMerge pull request #3214 from lioncash/svc-func (diff)
parentgl_shader_cache: Add missing new-line on emitted GLSL (diff)
downloadyuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.gz
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.bz2
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.lz
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.xz
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.tar.zst
yuzu-2b650543c652623294fe4d7fe096ae0d4820b147.zip
-rw-r--r--src/video_core/renderer_opengl/gl_shader_cache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp
index 370bdf052..270a9dc2b 100644
--- a/src/video_core/renderer_opengl/gl_shader_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp
@@ -281,11 +281,11 @@ CachedProgram BuildShader(const Device& device, u64 unique_identifier, ShaderTyp
if (variant.shared_memory_size > 0) {
// TODO(Rodrigo): We should divide by four here, but having a larger shared memory pool
// avoids out of bound stores. Find out why shared memory size is being invalid.
- source += fmt::format("shared uint smem[{}];", variant.shared_memory_size);
+ source += fmt::format("shared uint smem[{}];\n", variant.shared_memory_size);
}
if (variant.local_memory_size > 0) {
- source += fmt::format("#define LOCAL_MEMORY_SIZE {}",
+ source += fmt::format("#define LOCAL_MEMORY_SIZE {}\n",
Common::AlignUp(variant.local_memory_size, 4) / 4);
}
}