Skip to content

Commit 17cb0a0

Browse files
committed
change D2D1_HWND_RENDER_TARGET_PROPERTIES.presentOptions from D2D1_PRESENT_OPTIONS_NONE to D2D1_PRESENT_OPTIONS_IMMEDIATELY
1 parent 6f5b672 commit 17cb0a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/DXControl/DXControl.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public void CreateDevice()
551551
{
552552
hwnd = Handle,
553553
pixelSize = new D2D_SIZE_U((uint)Width, (uint)Height),
554-
presentOptions = D2D1_PRESENT_OPTIONS.D2D1_PRESENT_OPTIONS_NONE,
554+
presentOptions = D2D1_PRESENT_OPTIONS.D2D1_PRESENT_OPTIONS_IMMEDIATELY,
555555
};
556556

557557
_renderTarget = _d2DFactory.CreateHwndRenderTarget(hwndRenderTargetProps, renderTargetProps);

0 commit comments

Comments
 (0)