VirtualBox

Changeset 27850 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 31, 2010 8:11:58 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59530
Message:

2d: fix the crash on mode switch or VM termination in case overlay stuff was never initialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r27846 r27850  
    35243524bool VBoxVHWAImage::hasSurfaces() const
    35253525{
    3526     if(mDisplay.overlays().size() != 0)
     3526    if (mDisplay.overlays().size() != 0)
    35273527        return true;
    3528     if(mDisplay.primaries().size() > 1)
     3528    if (mDisplay.primaries().size() > 1)
    35293529        return true;
     3530    /* in case gl was never turned on, we have no surfaces at all including VGA */
     3531    if (!mDisplay.getVGA())
     3532        return false;
    35303533    return mDisplay.getVGA()->handle() != VBOXVHWA_SURFHANDLE_INVALID;
    35313534}
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