third_party/virtualbox/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
/**
 * Destroy an existing 3d context
 *
 * @returns VBox status code.
 * @param   pThis           VGA device instance data.
 * @param   cid             Context id
 */
Destroy an existing 3d context
@returns VBox status code.
@param   pThis           VGA device instance data.
@param   cid             Context id
Destroy an existing 3d context @returns VBox status code . @param pThis VGA device instance data . @param cid Context id
int vmsvga3dContextDestroy(PVGASTATE pThis, uint32_t cid)
{
    PVMSVGA3DSTATE pState = pThis->svga.p3dState;
    AssertReturn(pState, VERR_WRONG_ORDER);
    if (   cid < pState->cContexts
        && pState->papContexts[cid]->id == cid)
        return vmsvga3dContextDestroyOgl(pThis, pState->papContexts[cid], cid);
    AssertReturn(cid < SVGA3D_MAX_CONTEXT_IDS, VERR_INVALID_PARAMETER);
    return VINF_SUCCESS;
}
int vmsvga3dContextDestroy ( PVGASTATE pThis , uint32_t cid ) { PVMSVGA3DSTATE pState = pThis -> svga . p3dState ; AssertReturn ( pState , VERR_WRONG_ORDER ) ; if ( cid < pState -> cContexts && pState -> papContexts [ cid ] -> id == cid ) return vmsvga3dContextDestroyOgl ( pThis , pState -> papContexts [ cid ] , cid ) ; AssertReturn ( cid < SVGA3D_MAX_CONTEXT_IDS , VERR_INVALID_PARAMETER ) ; return VINF_SUCCESS ; }
Destroy an existing 3d context
 @returns VBox status code.
Destroy an existing 3d context @returns VBox status code .
/*
     * Resolve the context and hand it to the common worker function.
     */