From 459c4caebac0bc16c04467d9dcd2ef7a9fc0bd92 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 9 Dec 2022 17:41:40 -0300 Subject: Fix HasUnalignedStorageBuffers value when buffers are always unaligned (#4078) --- Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/Threed/SpecializationStateUpdater.cs') 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. /// /// The new value - public void SetHasUnalignedStorageBuffer(bool value) + /// True if the unaligned state changed, false otherwise + public bool SetHasUnalignedStorageBuffer(bool value) { if (value != _graphics.HasUnalignedStorageBuffer) { _graphics.HasUnalignedStorageBuffer = value; Signal(); + + return true; } + + return false; } /// -- cgit v1.2.3