mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
修复Win10下WGC截图COM错误 (#1601)
This commit is contained in:
@@ -85,7 +85,7 @@ public class GraphicsCapture(bool captureHdr = false) : IGameCapture
|
||||
}
|
||||
|
||||
_pixelFormat = DirectXPixelFormat.R16G16B16A16Float;
|
||||
_captureFramePool = Direct3D11CaptureFramePool.CreateFreeThreaded(
|
||||
_captureFramePool = Direct3D11CaptureFramePool.Create(
|
||||
_d3dDevice,
|
||||
_pixelFormat,
|
||||
2,
|
||||
@@ -95,7 +95,7 @@ public class GraphicsCapture(bool captureHdr = false) : IGameCapture
|
||||
{
|
||||
// Fallback
|
||||
_pixelFormat = DirectXPixelFormat.B8G8R8A8UIntNormalized;
|
||||
_captureFramePool = Direct3D11CaptureFramePool.CreateFreeThreaded(
|
||||
_captureFramePool = Direct3D11CaptureFramePool.Create(
|
||||
_d3dDevice,
|
||||
_pixelFormat,
|
||||
2,
|
||||
|
||||
Reference in New Issue
Block a user