diff --git a/video/out/opengl/context_dxinterop.c b/video/out/opengl/context_dxinterop.c index b4d999165e..d3287f1f28 100644 --- a/video/out/opengl/context_dxinterop.c +++ b/video/out/opengl/context_dxinterop.c @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -385,7 +386,7 @@ static void fill_presentparams(MPGLContext *ctx, D3DPRESENT_PARAMETERS *pparams) // true, at least on Nvidia, where less than four backbuffers causes // very high CPU usage. Use six to be safe. .BackBufferCount = 6, - .SwapEffect = D3DSWAPEFFECT_FLIPEX, + .SwapEffect = IsWindows7OrGreater() ? D3DSWAPEFFECT_FLIPEX : D3DSWAPEFFECT_FLIP, // Automatically get the backbuffer format from the display format .BackBufferFormat = D3DFMT_UNKNOWN, .PresentationInterval = presentation_interval,