VirtualBox

Changeset 48095 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 27, 2013 4:50:29 PM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: yet another adjustment to 3D notify mechanism

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r47623 r48095  
    26762676    CRASSERT(idScreen < cr_server.screenCount);
    26772677
    2678     if (!cr_server.aWinVisibilityInfos[idScreen].cVisibleWindows == !cr_server.aWinVisibilityInfos[idScreen].fLastReportedVisible)
     2678    if (!cr_server.aWinVisibilityInfos[idScreen].fVisibleChanged
     2679            && !cr_server.aWinVisibilityInfos[idScreen].cVisibleWindows == !cr_server.aWinVisibilityInfos[idScreen].fLastReportedVisible)
    26792680        return;
    26802681
     
    26832684
    26842685    cr_server.aWinVisibilityInfos[idScreen].fLastReportedVisible = cr_server.aWinVisibilityInfos[idScreen].cVisibleWindows ? 1 : 0;
     2686    cr_server.aWinVisibilityInfos[idScreen].fVisibleChanged = 0;
    26852687}
    26862688
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r47628 r48095  
    4848    {
    4949        ++cr_server.aWinVisibilityInfos[pMural->screenId].cVisibleWindows;
     50        cr_server.aWinVisibilityInfos[pMural->screenId].fVisibleChanged = 1;
    5051    }
    5152    else
     
    5354        --cr_server.aWinVisibilityInfos[pMural->screenId].cVisibleWindows;
    5455        CRASSERT(cr_server.aWinVisibilityInfos[pMural->screenId].cVisibleWindows < UINT32_MAX/2);
     56        if (!cr_server.aWinVisibilityInfos[pMural->screenId].cVisibleWindows)
     57            cr_server.aWinVisibilityInfos[pMural->screenId].fVisibleChanged = 0;
    5558    }
    5659
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