Skip to content

Commit 21943e5

Browse files
committed
Revert
1 parent b0b0a2b commit 21943e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2c50ef2c68ccdf705767f11a94caf940e0339e4bd2261961b6ff807fd4c12e44
1+
83f9dfee3c40c31ab2319cc0cf94c0f754aadf483ffe4aa6de16b1413ddb83c8

src/Files.App/ViewModels/UserControls/Previews/ShellPreviewViewModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ private unsafe bool ChildWindowToXaml(nint parent, UIElement presenter)
162162
];
163163

164164
Windows.Win32.Foundation.HRESULT hr = default;
165+
Guid IID_IDCompositionDevice = typeof(IDCompositionDevice).GUID;
165166
using ComPtr<ID3D11Device> pD3D11Device = default;
166167
using ComPtr<ID3D11DeviceContext> pD3D11DeviceContext = default;
167168
using ComPtr<IDXGIDevice> pDXGIDevice = default;
@@ -186,8 +187,6 @@ private unsafe bool ChildWindowToXaml(nint parent, UIElement presenter)
186187
if (pD3D11Device.IsNull)
187188
return false;
188189

189-
Guid IID_IDCompositionDevice = typeof(IDCompositionDevice).GUID;
190-
191190
// Create the DComp device
192191
pDXGIDevice.Attach((IDXGIDevice*)pD3D11Device.Get());
193192
hr = PInvoke.DCompositionCreateDevice(

0 commit comments

Comments
 (0)