Changeset 51064 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
- Timestamp:
- Apr 14, 2014 2:21:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu.c
r50405 r51064 599 599 } 600 600 601 void renderspuWindowTermBase( WindowInfo *window ) 602 { 603 renderspuVBoxCompositorSet(window, NULL); 604 renderspuVBoxPresentBlitterCleanup(window); 605 renderspu_SystemDestroyWindow( window ); 606 RTCritSectDelete(&window->CompositorLock); 607 } 608 601 609 void renderspuWindowTerm( WindowInfo *window ) 602 610 { … … 605 613 CRASSERT(!pOldCtx == !pOldWindow); 606 614 /* ensure no concurrent draws can take place */ 607 renderspuVBoxCompositorSet(window, NULL); 608 renderspuVBoxPresentBlitterCleanup(window); 609 renderspu_SystemDestroyWindow( window ); 610 RTCritSectDelete(&window->CompositorLock); 615 renderspuWindowTermBase(window); 611 616 /* check if this window is bound to some ctx. Note: window pointer is already freed here */ 612 617 crHashtableWalk(render_spu.contextTable, renderspuCheckCurrentCtxWindowCB, window); … … 1367 1372 } 1368 1373 1369 1370 1374 static void RENDER_APIENTRY renderspuChromiumParameteriCR(GLenum target, GLint value) 1371 1375 { 1372 1373 1376 switch (target) 1374 1377 { … … 1382 1385 1383 1386 renderspuSetDefaultSharedContext(pCtx); 1387 break; 1388 } 1389 case GL_HH_RENDERTHREAD_INFORM: 1390 { 1391 if (value) 1392 { 1393 int rc = renderspuDefaultCtxInit(); 1394 if (RT_FAILURE(rc)) 1395 { 1396 WARN(("renderspuDefaultCtxInit failed")); 1397 break; 1398 } 1399 } 1400 else 1401 { 1402 renderspuCleanupBase(false); 1403 } 1384 1404 break; 1385 1405 } … … 1753 1773 { 1754 1774 WindowInfo *pWindow = (WindowInfo *)data1; 1755 1756 renderspu_SystemReparentWindow(pWindow); 1775 CRHashTable *pTable = (CRHashTable*)data2; 1776 1777 crHashtableDelete(pTable, key, NULL); 1778 1779 renderspuWindowTerm(pWindow); 1780 1781 crFree(pWindow); 1757 1782 } 1758 1783
Note:
See TracChangeset
for help on using the changeset viewer.