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
This commit is contained in:
gdkchan 2021-05-20 16:43:23 -03:00 committed by GitHub
parent d3b2ebf645
commit 887da4b8e5
3 changed files with 47 additions and 15 deletions

View file

@ -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);