VirtualBox

Changeset 40192 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Feb 21, 2012 10:46:37 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76356
Message:

3D check: don't prevent the user from enabling 3D acceleration in the VM settings but fail to start the VM if 3D is not available on the host

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r40188 r40192  
    25092509                hrc = host->COMGETTER(Acceleration3DAvailable)(&fSupports3D); H();
    25102510                if (!fSupports3D)
    2511                 {
    2512                     setVMRuntimeErrorCallbackF(pVM, this, 0,
    2513                             "Accel3DNotAvailable",
    2514                             N_("This VM was configured to use 3D support. However, the "
    2515                                "3D support of the host is not working properly. Therefore "
    2516                                "3D support for the guest has been disabled"));
    2517                     fEnabled3D = false;
    2518                 }
    2519             }
    2520 
    2521             if (fEnabled3D)
    2522             {
     2511                    return VMSetError(pVM, VERR_NOT_AVAILABLE, RT_SRC_POS,
     2512                            N_("This VM was configured to use 3D acceleration. However, the "
     2513                               "3D support of the host is not working properly and the "
     2514                               "VM cannot be started. To fix this problem, either "
     2515                               "fix the host 3D support (update the host graphics driver?) "
     2516                               "or disable 3D acceleration in the VM settings"));
     2517
    25232518                /* Load the service */
    25242519                rc = pVMMDev->hgcmLoadService("VBoxSharedCrOpenGL", "VBoxSharedCrOpenGL");
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