Skip to content

Commit

Permalink
Merge branch 'd3d-tearing'
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Mar 25, 2023
2 parents 975b58c + 068700a commit 073f2dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Veldrid/D3D11/D3D11Swapchain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void recreateSwapchain()
BufferCount = 2,
Windowed = true,
BufferDescription = new ModeDescription(
(int)_description.Width, (int)_description.Height, _colorFormat),
(int)_width, (int)_height, _colorFormat),
OutputWindow = win32Source.Hwnd,
SampleDescription = new SampleDescription(1, 0),
SwapEffect = SwapEffect.FlipDiscard,
Expand All @@ -184,8 +184,8 @@ private void recreateSwapchain()
AlphaMode = AlphaMode.Ignore,
BufferCount = 2,
Format = _colorFormat,
Height = (int)(_description.Height * _pixelScale),
Width = (int)(_description.Width * _pixelScale),
Height = (int)(_height * _pixelScale),
Width = (int)(_width * _pixelScale),
SampleDescription = new SampleDescription(1, 0),
SwapEffect = SwapEffect.FlipSequential,
BufferUsage = Usage.RenderTargetOutput,
Expand Down

0 comments on commit 073f2dc

Please sign in to comment.