mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-15 07:43:20 +08:00
删除无用的释放内容,修复wgc关闭时候报错 #1419
This commit is contained in:
@@ -311,20 +311,6 @@ public class GraphicsCapture : IGameCapture
|
||||
|
||||
_hWnd = IntPtr.Zero;
|
||||
IsCapturing = false;
|
||||
|
||||
// 释放最新帧
|
||||
_frameAccessLock.EnterWriteLock();
|
||||
try
|
||||
{
|
||||
_latestFrame?.Dispose();
|
||||
_latestFrame = null;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_frameAccessLock.ExitWriteLock();
|
||||
}
|
||||
|
||||
_frameAccessLock.Dispose();
|
||||
}
|
||||
|
||||
private void CaptureItemOnClosed(GraphicsCaptureItem sender, object args)
|
||||
|
||||
Reference in New Issue
Block a user