BOOL APIENTRY DrvDeleteContext(HGLRC hglrc) { CR_DDI_PROLOGUE(); /*crDebug( "DrvDeleteContext(0x%x) called", hglrc );*/ stubDestroyContext( (unsigned long) hglrc ); return 1; }
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; }
// Callback function, used to destroy all created contexts static void hsWalkStubDestroyContexts(unsigned long key, void *data1, void *data2) { stubDestroyContext(key); }
BOOL WINAPI wglDeleteContext_prox( HGLRC hglrc ) { CR_DDI_PROLOGUE(); stubDestroyContext( (unsigned long) hglrc ); return 1; }
void APIENTRY crDestroyContext( GLint context ) { stubDestroyContext(context); }
BOOL WINAPI wglDeleteContext_prox( HGLRC hglrc ) { stubDestroyContext( (unsigned long) hglrc ); return 1; }