Skip to content

Commit

Permalink
Merge pull request #93 from gmurray81/fix-remote-desktop-issue-in-3.x
Browse files Browse the repository at this point in the history
fix remote desktop issue in 3.x
  • Loading branch information
NogginBops authored May 29, 2024
2 parents 2563c71 + c26e662 commit 41b6eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GLWpfControl/GLWpfControlRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void PreRender()
private void PostRender()
{
Wgl.DXUnlockObjectsNV(_context.GlDeviceHandle, 1, new [] {_framebuffer.DxInteropRegisteredHandle});
_framebuffer.D3dImage.SetBackBuffer(D3DResourceType.IDirect3DSurface9, _framebuffer.DxRenderTargetHandle);
_framebuffer.D3dImage.SetBackBuffer(D3DResourceType.IDirect3DSurface9, _framebuffer.DxRenderTargetHandle, true);
_framebuffer.D3dImage.AddDirtyRect(new Int32Rect(0, 0, _framebuffer.FramebufferWidth, _framebuffer.FramebufferHeight));
_framebuffer.D3dImage.Unlock();
}
Expand Down

0 comments on commit 41b6eac

Please sign in to comment.