VirtualBox

Changeset 105966 in vbox


Ignore:
Timestamp:
Sep 5, 2024 7:13:29 AM (7 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164706
Message:

Main: Check for hrc when using IsFeatureEnabled() in Console::i_configGraphicsController() [build fix]. bugref:10749

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r105964 r105966  
    850850                case GraphicsControllerType_VBoxSVGA:
    851851                {
     852#if defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_3D_ACCELERATION) /* Work around zero-sized arrays. */
    852853                    static const GraphicsFeature_T s_aGraphicsFeatures[] =
    853854                    {
    854 # ifdef VBOX_WITH_VIDEOHWACCEL
     855#  ifdef VBOX_WITH_VIDEOHWACCEL
    855856                        /* @bugref{9691} -- The legacy VHWA acceleration has been disabled completely. */
    856857                        //GraphicsFeature_Acceleration2DVideo,
    857 # endif
    858 # ifdef VBOX_WITH_3D_ACCELERATION
     858#  endif
     859#  ifdef VBOX_WITH_3D_ACCELERATION
    859860                        GraphicsFeature_Acceleration3D
    860 # endif
     861#  endif
    861862                    };
    862863                    RT_CPP_VECTOR_ASSIGN_ARRAY(vecSupportedGraphicsFeatures, s_aGraphicsFeatures);
     864# endif
    863865                    break;
    864866                }
    865 #endif
     867#endif /* VBOX_WITH_VMSVGA */
    866868                case GraphicsControllerType_VBoxVGA:
    867869                    RT_FALL_THROUGH();
     
    873875
    874876                default:
    875                 {
    876                     AssertFailedReturn(VERR_INVALID_PARAMETER);
    877                     break; /* Never reached. */
    878                 }
     877                    /* In case GraphicsControllerType_VBoxSVGA is not available. */
     878                    break;
    879879            }
    880880
Note: See TracChangeset for help on using the changeset viewer.

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