示例#1
0
BOOL APIENTRY DrvDeleteContext(HGLRC hglrc)
{
    CR_DDI_PROLOGUE();
    /*crDebug( "DrvDeleteContext(0x%x) called", hglrc );*/
    stubDestroyContext( (unsigned long) hglrc );
    return 1;
}
示例#2
0
BOOL APIENTRY DrvDeleteContext(HGLRC hglrc)
{
#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    ContextInfo *pContext;
    PVBOXUHGSMI pHgsmi = NULL;
#endif

    CR_DDI_PROLOGUE();
    crDebug( "DrvDeleteContext(0x%x) called", hglrc );

#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    crHashtableLock(stub.contextTable);

    pContext = (ContextInfo *) crHashtableSearch(stub.contextTable, (unsigned long) hglrc);
    if (pContext)
        pHgsmi = pContext->pHgsmi;

    crHashtableUnlock(stub.contextTable);
#endif

    stubDestroyContext( (unsigned long) hglrc );

#if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST)
    if (pHgsmi)
        VBoxCrHgsmiDestroy(pHgsmi);
#endif

    return true;
}
示例#3
0
文件: load.c 项目: OSLL/vboxhsm
// Callback function, used to destroy all created contexts
static void hsWalkStubDestroyContexts(unsigned long key, void *data1, void *data2)
{
    stubDestroyContext(key);
}
示例#4
0
BOOL WINAPI wglDeleteContext_prox( HGLRC hglrc )
{
    CR_DDI_PROLOGUE();
    stubDestroyContext( (unsigned long) hglrc );
    return 1;
}
示例#5
0
void APIENTRY crDestroyContext( GLint context )
{
    stubDestroyContext(context);
}
示例#6
0
文件: wgl.c 项目: boompig/chromium
BOOL WINAPI wglDeleteContext_prox( HGLRC hglrc )
{
	stubDestroyContext( (unsigned long) hglrc );
	return 1;
}