VirtualBox

Ignore:
Timestamp:
Feb 27, 2014 10:34:19 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
92506
Message:

crOpenGL: misc bugfixes and cleanup

File:
1 edited

Legend:

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

    r50095 r50625  
    281281        pNode->next = cr_server.pCleanupClient;
    282282        cr_server.pCleanupClient = pNode;
     283    }
     284
     285    if (!cr_server.numClients)
     286    {
     287        /* if no clients, the guest driver may be unloaded,
     288         * and thus the visible regions situation might not be under control anymore,
     289         * so cleanup the 3D framebuffer data here
     290         * @todo: what really should happen is that guest driver on unload
     291         * posts some request to host that would copy the current framebuffer 3D data to the 2D buffer
     292         * (i.e. to the memory used by the standard IFramebuffer API) */
     293        HCR_FRAMEBUFFER hFb;
     294        for (hFb = CrPMgrFbGetFirstEnabled(); hFb; hFb = CrPMgrFbGetNextEnabled(hFb))
     295        {
     296            CrFbRegionsClear(hFb);
     297        }
    283298    }
    284299}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette