VirtualBox

Changeset 51094 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Apr 17, 2014 7:29:14 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL/CrCmd: unload fixes

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

Legend:

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

    r51089 r51094  
    158158    tearingdown = 1;
    159159
    160     if (cr_server.DisableData.hNotifyTerm)
     160    if (cr_server.fCrCmdEnabled)
    161161    {
    162162        VBOXCRCMDCTL_HGCMENABLE_DATA EnableData;
    163         int rc = cr_server.DisableData.pfnNotifyTerm(cr_server.DisableData.hNotifyTerm, &EnableData);
     163        /* crVBoxServerHgcmEnable will erase the DisableData, preserve it here */
     164        VBOXCRCMDCTL_HGCMDISABLE_DATA DisableData = cr_server.DisableData;
     165        int rc;
     166
     167        CRASSERT(DisableData.pfnNotifyTerm);
     168        rc = DisableData.pfnNotifyTerm(DisableData.hNotifyTerm, &EnableData);
    164169        if (!RT_SUCCESS(rc))
    165170        {
     
    175180        }
    176181
    177         cr_server.DisableData.pfnNotifyTermDone(cr_server.DisableData.hNotifyTerm);
     182        CRASSERT(DisableData.pfnNotifyTermDone);
     183        DisableData.pfnNotifyTermDone(DisableData.hNotifyTerm);
     184
     185        Assert(!cr_server.fCrCmdEnabled);
    178186    }
    179187
     
    42304238    crVBoxServerDefaultContextSet();
    42314239
     4240    memset(&cr_server.DisableData, 0, sizeof (cr_server.DisableData));
     4241
    42324242    return VINF_SUCCESS;
    42334243}
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp

    r51078 r51094  
    48984898    if (!hFb)
    48994899    {
    4900         WARN(("request to present on disabled framebuffer, ignore"));
     4900        LOG(("request to present on disabled framebuffer, ignore"));
    49014901        return 0;
    49024902    }
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