VirtualBox

Changeset 3559 in vbox for trunk/src


Ignore:
Timestamp:
Jul 11, 2007 4:27:23 PM (18 years ago)
Author:
vboxsync
Message:

Make OpenGL configurable. Default off for the time being.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r3556 r3559  
    568568        LogRel(("Failed to load Shared Folders service %Vrc\n", rc));
    569569    }
    570     rc = pData->pVMMDev->hgcmLoadService ("VBoxSharedOpenGL", "VBoxSharedOpenGL");
    571     if (VBOX_SUCCESS(rc))
    572     {
    573         LogRel(("Shared OpenGL service loaded.\n"));
    574     }
    575     else
    576     {
    577         LogRel(("Failed to load Shared OpenGL service %Vrc\n", rc));
     570
     571    bool fEnabled;
     572
     573    /* Check CFGM option. */
     574    rc = CFGMR3QueryBool(pCfgHandle, "OpenGLEnabled", &fEnabled);
     575    if (    VBOX_SUCCESS(rc)
     576        &&  fEnabled)
     577    {
     578        rc = pData->pVMMDev->hgcmLoadService ("VBoxSharedOpenGL", "VBoxSharedOpenGL");
     579        if (VBOX_SUCCESS(rc))
     580        {
     581            LogRel(("Shared OpenGL service loaded.\n"));
     582        }
     583        else
     584        {
     585            LogRel(("Failed to load Shared OpenGL service %Vrc\n", rc));
     586        }
    578587    }
    579588
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