[vlc-commits] [Git][videolan/vlc][master] qt: enable Qt RHI fallback for Windows 8

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Jul 26 05:10:40 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
309aecb8 by Fatih Uzunoglu at 2024-07-26T04:56:59+00:00
qt: enable Qt RHI fallback for Windows 8

Direct3D 11.2 is introduced with Windows 8.1, and Qt
RHI has already been using Direct3D 11.2 features.

- - - - -


1 changed file:

- modules/gui/qt/qt.cpp


Changes:

=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -895,15 +895,15 @@ static void *Thread( void *obj )
     QApplication app( argc, argv );
     app.setProperty("initialStyle", app.style()->objectName());
 
-#if defined(_WIN32) && (_WIN32_WINNT < _WIN32_WINNT_WIN8)
+#if defined(_WIN32) && (_WIN32_WINNT < _WIN32_WINNT_WINBLUE)
     // TODO: Qt Quick RHI Fallback does not work (Qt 6.7.1).
     //       We have to manually pick a graphics api here for
-    //       Windows 7, since it may not support the default
-    //       graphics api (D3D11).
+    //       Windows 7 and Windows 8, since it may not support
+    //       the default graphics api (Direct3D 11.2).
 
     if (qEnvironmentVariableIsEmpty("QSG_RHI_BACKEND"))
     {
-        if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows8)
+        if (QOperatingSystemVersion::current() < QOperatingSystemVersion::Windows8_1)
         {
             // TODO: Probe D3D12 when it becomes the default.
             {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/309aecb876573d8240daab5d585d5efeaea1dc48

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/309aecb876573d8240daab5d585d5efeaea1dc48
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list