Don't specify the resolution of backbuffer. Then dxgi will let us know the
actual client area. When upstream resolution is chagned, updating the size
of backbuffer without the consideration for client size would cause mismatch
between them.
window->rtv = NULL;
}
- /* Set zero width and height here. dxgi will decide client area by itself */
swap_chain->GetDesc (&swap_desc);
hr = swap_chain->ResizeBuffers (0, width, height, DXGI_FORMAT_UNKNOWN,
swap_desc.Flags);
*swap_chain = new_swapchain;
- gst_d3d11_window_on_resize (window, width, height);
+ /* Set zero width and height here. dxgi will decide client area by itself */
+ gst_d3d11_window_on_resize (window, 0, 0);
return TRUE;
}