vlc | branch: master | Steve Lhomme <[email protected]> | 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
         {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to