game: Always lock around ProcessCommands, even when unloading / disabling
This commit is contained in:
parent
9ec966f6ff
commit
1b9d30af68
1 changed files with 0 additions and 7 deletions
|
@ -277,13 +277,6 @@ RR {dev->RequestRender} 0x{(long) dev->ImmediateContext->IfNonZeroSkipPostTickPr
|
||||||
|
|
||||||
private void ICDX11ProcessCommandsDetour(ImmediateContext* ctx, RenderCommandBufferGroup* cmds, uint count)
|
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)
|
lock (_renderLock)
|
||||||
{
|
{
|
||||||
_icdx11ProcessCommandsHook.OriginalDisposeSafe(ctx, cmds, count);
|
_icdx11ProcessCommandsHook.OriginalDisposeSafe(ctx, cmds, count);
|
||||||
|
|
Loading…
Add table
Reference in a new issue