VirtualBox

Changeset 33638 in vbox


Ignore:
Timestamp:
Nov 1, 2010 8:10:29 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: Exclude 2D/3D test procedures from cache as they are not safe for non-GUI thread.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.cpp

    r33632 r33638  
    148148    m_cache.m_iCurrentVRAM = m_machine.GetVRAMSize();
    149149    m_cache.m_cMonitorCount = m_machine.GetMonitorCount();
    150     m_cache.m_f3dAccelerationSupported = vboxGlobal().virtualBox().GetHost().GetAcceleration3DAvailable();
    151150    m_cache.m_f3dAccelerationEnabled = m_machine.GetAccelerate3DEnabled();
    152151#ifdef VBOX_WITH_VIDEOHWACCEL
    153     m_cache.m_f2dAccelerationSupported = VBoxGlobal::isAcceleration2DVideoAvailable();
    154152    m_cache.m_f2dAccelerationEnabled = m_machine.GetAccelerate2DVideoEnabled();
    155153#endif
     
    175173    /* Apply internal variables data to QWidget(s): */
    176174    mSlMonitors->setValue(m_cache.m_cMonitorCount);
    177     mCb3D->setEnabled(m_cache.m_f3dAccelerationSupported);
     175    mCb3D->setEnabled(vboxGlobal().virtualBox().GetHost().GetAcceleration3DAvailable());
    178176    mCb3D->setChecked(m_cache.m_f3dAccelerationEnabled);
    179177#ifdef VBOX_WITH_VIDEOHWACCEL
    180     mCb2DVideo->setEnabled(m_cache.m_f2dAccelerationSupported);
     178    mCb2DVideo->setEnabled(VBoxGlobal::isAcceleration2DVideoAvailable());
    181179    mCb2DVideo->setChecked(m_cache.m_f2dAccelerationEnabled);
    182180#endif
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.h

    r33631 r33638  
    2929    int m_iCurrentVRAM;
    3030    int m_cMonitorCount;
    31     bool m_f3dAccelerationSupported;
    3231    bool m_f3dAccelerationEnabled;
    33     bool m_f2dAccelerationSupported;
    3432    bool m_f2dAccelerationEnabled;
    3533    bool m_fVRDEServerSupported;
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