VirtualBox

Ignore:
Timestamp:
Jul 10, 2014 3:48:05 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL/OSX: fix garbage on resize

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox

  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c

    r51442 r51975  
    10171017     * no need to synch here
    10181018     * the lock is actually needed to ensure we're in synch with the redraw thread */
    1019     if (window->pCompositor == pCompositor && ! fEmpty)
     1019    if (window->pCompositor == pCompositor && !fEmpty)
    10201020        return !!pCompositor;
    10211021
     
    10311031        }
    10321032
    1033         window->pCompositor = pCompositor;
     1033        window->pCompositor = !fEmpty ? pCompositor : NULL;
    10341034        RTCritSectLeave(&window->CompositorLock);
    10351035        return fNeedPresent;
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m

    r51442 r51975  
    925925    DEBUG_MSG(("OVIW(%p): setSize: new size: %dx%d\n", (void*)self, (int)size.width, (int)size.height));
    926926    [self performSelectorOnMainThread:@selector(vboxReshapeOnResizePerform) withObject:nil waitUntilDone:NO];
     927
     928    /* ensure window contents is updated after that */
     929    [self setNeedsDisplay:YES];
    927930}
    928931
     
    12731276                m_fNeedViewportUpdate = false;
    12741277            }
     1278           
     1279            m_fCleanupNeeded = GL_FALSE;
    12751280           
    12761281            /* Render FBO content to the dock tile when necessary. */
     
    19461951    NSAutoreleasePool *pPool = [[NSAutoreleasePool alloc] init];
    19471952
    1948     [(OverlayView*)pView vboxNeedsEmptyPresent];
     1953    GLboolean fNeedsPresent = [(OverlayView*)pView vboxNeedsEmptyPresent];
    19491954
    19501955    [pPool release];
     1956   
     1957    return fNeedsPresent;
    19511958}
    19521959
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