Skip to content

Commit 073f2dc

Browse files
committed
Merge branch 'd3d-tearing'
2 parents 975b58c + 068700a commit 073f2dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Veldrid/D3D11/D3D11Swapchain.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private void recreateSwapchain()
160160
BufferCount = 2,
161161
Windowed = true,
162162
BufferDescription = new ModeDescription(
163-
(int)_description.Width, (int)_description.Height, _colorFormat),
163+
(int)_width, (int)_height, _colorFormat),
164164
OutputWindow = win32Source.Hwnd,
165165
SampleDescription = new SampleDescription(1, 0),
166166
SwapEffect = SwapEffect.FlipDiscard,
@@ -184,8 +184,8 @@ private void recreateSwapchain()
184184
AlphaMode = AlphaMode.Ignore,
185185
BufferCount = 2,
186186
Format = _colorFormat,
187-
Height = (int)(_description.Height * _pixelScale),
188-
Width = (int)(_description.Width * _pixelScale),
187+
Height = (int)(_height * _pixelScale),
188+
Width = (int)(_width * _pixelScale),
189189
SampleDescription = new SampleDescription(1, 0),
190190
SwapEffect = SwapEffect.FlipSequential,
191191
BufferUsage = Usage.RenderTargetOutput,

0 commit comments

Comments
 (0)