VirtualBox

Changeset 42042 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jul 6, 2012 4:41:01 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL/OSX: fix invalid drawable warning

File:
1 edited

Legend:

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

    r41913 r42042  
    7979#endif
    8080
    81 #ifdef DEBUG_poetzsch
     81#ifdef DEBUG_misha
    8282# define DEBUG_MSG(text) \
    8383    printf text
     
    12321232    }
    12331233
    1234     [self tryDraw];
     1234    if (m_cClipRects)
     1235        [self tryDraw];
    12351236#else
    12361237    [m_pGLCtx flushBuffer];
     
    12591260              && (GLuint)drawId == m_FBOAttFrontId))
    12601261            m_fFrontDrawing = false;
    1261         [self tryDraw];
     1262        if (m_cClipRects)
     1263            [self tryDraw];
    12621264    }
    12631265#endif
     
    12701272    glFinish();
    12711273#ifdef FBO
    1272     if ([self isCurrentFBO])
     1274    if (m_cClipRects && [self isCurrentFBO])
    12731275        [self tryDraw];
    12741276#endif
     
    15701572- (void)setVisibleRegions:(GLint)cRects paRects:(GLint*)paRects
    15711573{
     1574    GLint cOldRects = m_cClipRects;
     1575
    15721576    DEBUG_MSG_1(("OVIW(%p): setVisibleRegions: cRects=%d\n", (void*)self, cRects));
    15731577
     
    15861590        memcpy(m_paClipRects, paRects, sizeof(GLint) * 4 * cRects);
    15871591    }
    1588     else
     1592    else if (cOldRects)
    15891593        [self tryDraw];
    15901594}
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