We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 975b58c + 068700a commit 073f2dcCopy full SHA for 073f2dc
src/Veldrid/D3D11/D3D11Swapchain.cs
@@ -160,7 +160,7 @@ private void recreateSwapchain()
160
BufferCount = 2,
161
Windowed = true,
162
BufferDescription = new ModeDescription(
163
- (int)_description.Width, (int)_description.Height, _colorFormat),
+ (int)_width, (int)_height, _colorFormat),
164
OutputWindow = win32Source.Hwnd,
165
SampleDescription = new SampleDescription(1, 0),
166
SwapEffect = SwapEffect.FlipDiscard,
@@ -184,8 +184,8 @@ private void recreateSwapchain()
184
AlphaMode = AlphaMode.Ignore,
185
186
Format = _colorFormat,
187
- Height = (int)(_description.Height * _pixelScale),
188
- Width = (int)(_description.Width * _pixelScale),
+ Height = (int)(_height * _pixelScale),
+ Width = (int)(_width * _pixelScale),
189
190
SwapEffect = SwapEffect.FlipSequential,
191
BufferUsage = Usage.RenderTargetOutput,
0 commit comments