diff --git a/src/Ryujinx.Graphics.Vulkan/LabelScope.cs b/src/Ryujinx.Graphics.Vulkan/LabelScope.cs index ea9f02d1e..61ffd4d4d 100644 --- a/src/Ryujinx.Graphics.Vulkan/LabelScope.cs +++ b/src/Ryujinx.Graphics.Vulkan/LabelScope.cs @@ -21,6 +21,7 @@ namespace Ryujinx.Graphics.Vulkan class CommandBufferLabelScope : ILabelScopePrivate { private CommandBuffer _commandBuffer; + private bool _disposed; private readonly ExtDebugUtils _debugUtils; @@ -73,7 +74,13 @@ namespace Ryujinx.Graphics.Vulkan public void Dispose() { + if (_disposed) + { + return; + } + EndLabel(); + _disposed = true; } } }