diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2022-12-09 17:41:40 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-09 17:41:40 -0300 |
| commit | 459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92 (patch) | |
| tree | 3f5f5fd83c0286724bc4d2e7ab4db1dc0e4ab2d6 /Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs | |
| parent | 539b22ef7b2c83617e4a57adf9433bf84bb1b638 (diff) | |
Fix HasUnalignedStorageBuffers value when buffers are always unaligned (#4078)
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs b/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs index 9e888f50..13b332f4 100644 --- a/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs +++ b/Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs @@ -253,14 +253,19 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed /// Indicates that any storage buffer use is unaligned. /// </summary> /// <param name="value">The new value</param> - public void SetHasUnalignedStorageBuffer(bool value) + /// <returns>True if the unaligned state changed, false otherwise</returns> + public bool SetHasUnalignedStorageBuffer(bool value) { if (value != _graphics.HasUnalignedStorageBuffer) { _graphics.HasUnalignedStorageBuffer = value; Signal(); + + return true; } + + return false; } /// <summary> |
