[vlc-commits] direct3d11: enable DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL on Win 8.0

Steve Lhomme git at videolan.org
Fri Oct 19 11:06:05 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 16 16:16:06 2018 +0200| [70fed3abafa5589bc18690793b747080693eaff6] | committer: Steve Lhomme

direct3d11: enable DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL on Win 8.0

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70fed3abafa5589bc18690793b747080693eaff6
---

 modules/video_output/win32/direct3d11.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index dcd8def224..0fd8f13c8a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -505,11 +505,11 @@ static void FillSwapChainDesc(vout_display_t *vd, DXGI_SWAP_CHAIN_DESC1 *out)
         out->SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD;
     else
     {
-        bool isWin81OrGreater = false;
+        bool isWin80OrGreater = false;
         HMODULE hKernel32 = GetModuleHandle(TEXT("kernel32.dll"));
         if (likely(hKernel32 != NULL))
-            isWin81OrGreater = GetProcAddress(hKernel32, "IsProcessCritical") != NULL;
-        if (isWin81OrGreater)
+            isWin80OrGreater = GetProcAddress(hKernel32, "CheckTokenCapability") != NULL;
+        if (isWin80OrGreater)
             out->SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
         else
         {



More information about the vlc-commits mailing list