VirtualBox

Changeset 41264 in vbox


Ignore:
Timestamp:
May 14, 2012 7:04:40 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: vboxhgcm connection cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/vboxhgcm.c

    r41262 r41264  
    251251    Flags.fCommand = 1;
    252252    rc = pHgsmi->pfnBufferCreate(pHgsmi, CRVBOXHGSMI_PAGE_ALIGN(1), Flags, &pClient->pCmdBuffer);
    253     AssertRC(rc);
    254253    if (RT_SUCCESS(rc))
    255254    {
    256255        Flags.Value = 0;
    257256        rc = pHgsmi->pfnBufferCreate(pHgsmi, CRVBOXHGSMI_PAGE_ALIGN(1), Flags, &pClient->pHGBuffer);
    258         AssertRC(rc);
    259257        if (RT_SUCCESS(rc))
    260258        {
     
    263261            return VINF_SUCCESS;
    264262        }
     263        else
     264            crWarning("_crVBoxHGSMIClientInit: pfnBufferCreate failed to allocate host->guest buffer");
     265
    265266        pClient->pCmdBuffer->pfnDestroy(pClient->pCmdBuffer);
    266267    }
     268    else
     269        crWarning("_crVBoxHGSMIClientInit: pfnBufferCreate failed to allocate cmd buffer");
     270
    267271    pClient->pHgsmi = NULL;
    268272    return rc;
     
    375379                        cbSize);
    376380        rc = pClient->pHgsmi->pfnBufferCreate(pClient->pHgsmi, cbSize, Flags, &buf);
    377         AssertRC(rc);
    378381        if (RT_FAILURE(rc))
    379             crWarning("Failed to Create a buffer of size(%d), rc(%d)\n", cbSize, rc);
     382            crWarning("_crVBoxHGSMIBufAlloc: Failed to Create a buffer of size(%d), rc(%d)\n", cbSize, rc);
    380383    }
    381384    return buf;
     
    20052008
    20062009                rc = pClient->pHgsmi->pfnBufferCreate(pClient->pHgsmi, CRVBOXHGSMI_PAGE_ALIGN(cbWriteback), Flags, &pClient->pHGBuffer);
    2007                 AssertRC(rc);
    20082010                if (RT_SUCCESS(rc))
    20092011                {
     
    20152017                else
    20162018                {
     2019                    crWarning("_crVBoxHGSMIWriteReadExact: pfnBufferCreate(%d) failed!", CRVBOXHGSMI_PAGE_ALIGN(cbWriteback));
    20172020                    crFree(conn->pHostBuffer);
    20182021                    conn->cbHostBufferAllocated = cbWriteback;
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