From 1b9d30af682bfbf3f6cdff14488366b1ca226a7a Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Wed, 2 Jul 2025 23:53:28 +0200 Subject: [PATCH] game: Always lock around ProcessCommands, even when unloading / disabling --- CustomResolution2782/GameSizeState.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CustomResolution2782/GameSizeState.cs b/CustomResolution2782/GameSizeState.cs index 6c0c52e..f3b259a 100644 --- a/CustomResolution2782/GameSizeState.cs +++ b/CustomResolution2782/GameSizeState.cs @@ -277,13 +277,6 @@ RR {dev->RequestRender} 0x{(long) dev->ImmediateContext->IfNonZeroSkipPostTickPr private void ICDX11ProcessCommandsDetour(ImmediateContext* ctx, RenderCommandBufferGroup* cmds, uint count) { - ref var cfg = ref Service.Config._.Game; - if (Service.Plugin.Unloading || !cfg.IsEnabled) - { - _icdx11ProcessCommandsHook.OriginalDisposeSafe(ctx, cmds, count); - return; - } - lock (_renderLock) { _icdx11ProcessCommandsHook.OriginalDisposeSafe(ctx, cmds, count);