VirtualBox

Ignore:
Timestamp:
Nov 9, 2009 11:17:15 AM (15 years ago)
Author:
vboxsync
Message:

crOpenGL-OSX: better fix for r54567

File:
1 edited

Legend:

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

    r24483 r24489  
    897897
    898898#ifdef FBO
    899     glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_FBOId);
     899    if([NSOpenGLContext currentContext] != 0)
     900        glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, m_FBOId);
    900901#endif
    901902    if (m_pGLCtx)
     
    904905        {
    905906            /* We change the active view, so flush first */
    906             glFlush();
     907            if([NSOpenGLContext currentContext] != 0)
     908                glFlush();
    907909            [m_pGLCtx setView: self];
    908910            CHECK_GL_ERROR();
     
    13671369    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    13681370
    1369     if ([NSOpenGLContext currentContext] != pCtx)
    1370         [pCtx makeCurrentContext];
    1371 
    13721371    [(OverlayView*)pView setGLCtx:pCtx];
    13731372    [(OverlayView*)pView makeCurrentFBO];
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