diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-15 05:02:07 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:38 +0200 |
commit | 6eea88d6149f7122777b325c7fc8549e2a974e64 (patch) | |
tree | adc74d8545021665fee7e46f8d4b1b0e14b1c823 /src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | |
parent | gl_shader_cache: Implement async shaders (diff) | |
download | yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar.gz yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar.bz2 yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar.lz yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar.xz yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.tar.zst yuzu-6eea88d6149f7122777b325c7fc8549e2a974e64.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp index 7421ce97d..49a66e3ec 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_composite.cpp @@ -17,8 +17,7 @@ void CompositeInsert(EmitContext& ctx, std::string_view result, std::string_view // The result is aliased with the composite ctx.Add("{}.{}={};", composite, SWIZZLE[index], object); } else { - ctx.Add("{}={};", result, composite); - ctx.Add("{}.{}={};", result, SWIZZLE[index], object); + ctx.Add("{}={};{}.{}={};", result, composite, result, SWIZZLE[index], object); } } } // Anonymous namespace |