diff --git a/src/Veldrid/D3D11/D3D11Swapchain.cs b/src/Veldrid/D3D11/D3D11Swapchain.cs index 032ec5a2b..74fce35f4 100644 --- a/src/Veldrid/D3D11/D3D11Swapchain.cs +++ b/src/Veldrid/D3D11/D3D11Swapchain.cs @@ -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, @@ -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,