VirtualBox

Changeset 105871 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 27, 2024 12:37:53 PM (3 months ago)
Author:
vboxsync
Message:

Main: Handle VBOX_E_NOT_SUPPORTED in the console config constructor if a graphics feature is not supported on the current platform. bugref:10749

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r105864 r105871  
    58565856
    58575857    <method name="isFeatureEnabled" const="yes">
    5858       <desc>Returns whether a particular feature is enabled for this adapter or not.</desc>
     5858      <desc>Returns whether a particular feature is enabled for this adapter or not.
     5859        <result name="VBOX_E_NOT_SUPPORTED">
     5860          The feature is not supported on the current platform.
     5861        </result>
     5862      </desc>
    58595863      <param name="feature" type="GraphicsFeature" dir="in">
    58605864        <desc>Feature to check for.</desc>
  • trunk/src/VBox/Main/src-client/ConsoleImplConfigCommon.cpp

    r105864 r105871  
    50745074        InsertConfigInteger(pCfg,  "MonitorCount",         cMonitorCount);
    50755075
    5076         BOOL f3DEnabled;
    5077         hrc = ptrGraphicsAdapter->IsFeatureEnabled(GraphicsFeature_Acceleration3D, &f3DEnabled);              H();
     5076        BOOL f3DEnabled = FALSE;
     5077        ptrGraphicsAdapter->IsFeatureEnabled(GraphicsFeature_Acceleration3D, &f3DEnabled);
     5078        /* Note: Might return VBOX_E_NOT_SUPPORTED if feature is not supported. */
    50785079        InsertConfigInteger(pCfg,  "3DEnabled",            f3DEnabled);
    50795080
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