mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
d3d11window: fix DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING swap chain flag for full screen
Fixes #1372 (regression introduced in 5eeec165
)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2866>
This commit is contained in:
parent
63dcee34fb
commit
0d07ff60c9
1 changed files with 5 additions and 0 deletions
|
@ -630,6 +630,11 @@ gst_d3d11_window_prepare_default (GstD3D11Window * window, guint display_width,
|
|||
if (SUCCEEDED (hr) && allow_tearing)
|
||||
window->allow_tearing = allow_tearing;
|
||||
|
||||
if (window->allow_tearing) {
|
||||
GST_DEBUG_OBJECT (window, "device supports tearing");
|
||||
swapchain_flags |= DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING;
|
||||
}
|
||||
|
||||
GstD3D11DeviceLockGuard lk (device);
|
||||
window->dxgi_format = chosen_format->dxgi_format;
|
||||
|
||||
|
|
Loading…
Reference in a new issue