D3D12HostDisplay: Fix incorrect height when streaming updates

This commit is contained in:
Connor McLaughlin 2021-07-11 13:43:47 +10:00
parent c7ce9562fa
commit 4bec982ca8

View file

@ -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<u32>(m_display_texture_view_width),
static_cast<u32>(m_display_texture_view_height));
}
bool D3D12HostDisplay::GetHostRefreshRate(float* refresh_rate)