From 4bec982ca8748a049cd5d822833049053dfd62ad Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 11 Jul 2021 13:43:47 +1000 Subject: [PATCH] D3D12HostDisplay: Fix incorrect height when streaming updates --- src/frontend-common/d3d12_host_display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/d3d12_host_display.cpp b/src/frontend-common/d3d12_host_display.cpp index 793b3c9ba..307b30893 100644 --- a/src/frontend-common/d3d12_host_display.cpp +++ b/src/frontend-common/d3d12_host_display.cpp @@ -162,8 +162,8 @@ bool D3D12HostDisplay::BeginSetDisplayPixels(HostDisplayPixelFormat format, u32 void D3D12HostDisplay::EndSetDisplayPixels() { - m_display_pixels_texture.EndStreamUpdate(0, 0, m_display_pixels_texture.GetWidth(), - m_display_pixels_texture.GetHeight()); + m_display_pixels_texture.EndStreamUpdate(0, 0, static_cast(m_display_texture_view_width), + static_cast(m_display_texture_view_height)); } bool D3D12HostDisplay::GetHostRefreshRate(float* refresh_rate)