VirtualBox

Changeset 106081 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Sep 18, 2024 1:02:12 PM (5 months ago)
Author:
vboxsync
Message:

Main: Fixed enabling 3D when selecting supported graphics controllers (static not needed/possible here). bugref:10749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/GraphicsAdapterImpl.cpp

    r106080 r106081  
    504504    };
    505505
    506     static FEATUREMEMBER2ENUM s_aFeatures[] =
     506    FEATUREMEMBER2ENUM aFeatures[] =
    507507    {
    508508        { &mData->fAccelerate2DVideo, GraphicsFeature_Acceleration2DVideo },
     
    510510    };
    511511
    512     for (size_t i = 0; i < RT_ELEMENTS(s_aFeatures); i++)
    513     {
    514         if (*s_aFeatures[i].pfFeatureMember)
    515             *s_aFeatures[i].pfFeatureMember
     512    for (size_t i = 0; i < RT_ELEMENTS(aFeatures); i++)
     513    {
     514        if (*aFeatures[i].pfFeatureMember)
     515            *aFeatures[i].pfFeatureMember
    516516                = PlatformProperties::s_isGraphicsControllerFeatureSupported(mParent->i_getPlatform()->i_getArchitecture(),
    517517                                                                             mData->graphicsControllerType,
    518                                                                              s_aFeatures[i].enmFeature);
    519     }
    520 }
    521 
     518                                                                             aFeatures[i].enmFeature);
     519    }
     520}
     521
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette