VirtualBox

Ignore:
Timestamp:
Aug 29, 2014 3:25:59 PM (10 years ago)
Author:
vboxsync
Message:

crOpenGL/osx: do not draw on hidden or unparented view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r52494 r52532  
    9393
    9494#ifdef DEBUG_misha
     95#define DEBUG_INFO(text) do { \
     96        crWarning text ; \
     97        Assert(0); \
     98    } while (0)
    9599# define DEBUG_MSG(text) \
    96100    printf text
     
    100104    } while (0)
    101105#else
     106#define DEBUG_INFO(text) do { \
     107        crInfo text ; \
     108    } while (0)
    102109# define DEBUG_MSG(text) \
    103110    do {} while (0)
     
    18221829    DEBUG_MSG(("My[%p]: DrawUI\n", self));
    18231830    const VBOXVR_SCR_COMPOSITOR *pCompositor;
     1831   
     1832    if ([self isHidden])
     1833    {
     1834        DEBUG_INFO(("request to draw on a hidden view"));
     1835        return;
     1836    }
     1837
     1838    if ([[self overlayWin] parentWindow] == nil)
     1839    {
     1840        DEBUG_INFO(("request to draw a view w/o a parent"));
     1841        return;
     1842    }
     1843   
    18241844    int rc = renderspuVBoxCompositorLock(m_pWinInfo, &pCompositor);
    18251845    if (RT_FAILURE(rc))
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