VirtualBox

Ignore:
Timestamp:
Jan 20, 2014 4:30:32 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91668
Message:

crOpenGL: bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.cpp

    r50095 r50123  
    4747    crServerRedirMuralFBO(mural, true);
    4848    crServerRedirMuralFbSync(mural);
     49}
     50
     51static void crServerCheckMuralGeometryCB(unsigned long key, void *data1, void *data2)
     52{
     53    CRMuralInfo *pMI = (CRMuralInfo*) data1;
     54
     55    if (!pMI->fRedirected || pMI == data2)
     56        return;
     57
     58    crServerCheckMuralGeometry(pMI);
     59}
     60
     61
     62void crServerCheckAllMuralGeometry(CRMuralInfo *pMI)
     63{
     64    CR_FBMAP Map;
     65    int rc = CrPMgrHlpGlblUpdateBegin(&Map);
     66    if (!RT_SUCCESS(rc))
     67    {
     68        WARN(("CrPMgrHlpGlblUpdateBegin failed %d", rc));
     69        return;
     70    }
     71
     72    crHashtableWalk(cr_server.muralTable, crServerCheckMuralGeometryCB, pMI);
     73
     74    if (pMI)
     75        crServerCheckMuralGeometry(pMI);
     76
     77    CrPMgrHlpGlblUpdateEnd(&Map);
    4978}
    5079
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