mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
d3d11window: Set DXGI_PRESENT_ALLOW_TEARING only in fullscreen mode
The DXGI_PRESENT_ALLOW_TEARING flag might cause unexpected tearing side effect. Setting it in fullscreen mode only seems to be the correct usage as in the Microsoft's direct3d examples.
This commit is contained in:
parent
54d8360baa
commit
f2e322197e
1 changed files with 1 additions and 1 deletions
|
@ -849,7 +849,7 @@ gst_d3d111_window_present (GstD3D11Window * self, GstBuffer * buffer)
|
|||
gst_d3d11_overlay_compositor_draw_unlocked (self->compositor, &self->rtv);
|
||||
|
||||
#if (DXGI_HEADER_VERSION >= 5)
|
||||
if (self->allow_tearing) {
|
||||
if (self->allow_tearing && self->fullscreen) {
|
||||
present_flags |= DXGI_PRESENT_ALLOW_TEARING;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue