aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-05-20 16:43:23 -0300
committerGitHub <noreply@github.com>2021-05-20 21:43:23 +0200
commit12533e5c9de779a76fb9c1b8406cef33ab0e4ba0 (patch)
tree4ac5e0942a800f55153c3c742d745d01109245ee /Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs
parentb34c0a47b4d5d9cc4b3a6b51fbc76fe2b493b07d (diff)
Fix buffer and texture uses not being propagated for vertex A/B shaders (#2300)
* Fix buffer and texture uses not being propagated for vertex A/B shaders * Shader cache version bump
Diffstat (limited to 'Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs')
-rw-r--r--Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs b/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs
index 649911a2..ab74d039 100644
--- a/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs
+++ b/Ryujinx.Graphics.Shader/Translation/TranslatorContext.cs
@@ -132,10 +132,9 @@ namespace Ryujinx.Graphics.Shader.Translation
if (other != null)
{
- _config.SetUsedFeature(other._config.UsedFeatures);
- TextureHandlesForCache.UnionWith(other.TextureHandlesForCache);
-
code = Combine(EmitShader(other._cfg, other._config), code);
+
+ _config.InheritFrom(other._config);
}
return Translator.Translate(code, _config, out shaderProgramInfo);