Changeset 106811 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 31, 2024 2:54:58 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp
r106810 r106811 53 53 #include "CExtPackManager.h" 54 54 #include "CGraphicsAdapter.h" 55 #include "CPlatformProperties.h" 55 56 #include "CProgress.h" /* For starting recording. */ 56 57 #include "CRecordingScreenSettings.h" … … 640 641 /* Check whether WDDM mode supported by the guest OS type: */ 641 642 m_f3DAccelerationSupported = UIGuestOSTypeHelpers::isWddmCompatibleOsType(m_strGuestOSTypeId); 643 644 /* Additionally make sure 3D acceleration is one of the features for current graphical controller: */ 645 if (m_f3DAccelerationSupported) 646 { 647 const KPlatformArchitecture enmArch = optionalFlags().contains("arch") 648 ? optionalFlags().value("arch").value<KPlatformArchitecture>() 649 : KPlatformArchitecture_x86; 650 CPlatformProperties comPlatformProperties = gpGlobalSession->virtualBox().GetPlatformProperties(enmArch); 651 const QVector<KGraphicsFeature> features = 652 comPlatformProperties.GetSupportedGfxFeaturesForType(graphicsControllerTypeCurrent()); 653 m_f3DAccelerationSupported &= features.contains(KGraphicsFeature_Acceleration3D); 654 } 642 655 643 656 /* Pass whether 3D acceleration is supported into Video Memory Editor: */
Note:
See TracChangeset
for help on using the changeset viewer.