Changeset 45159 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Mar 25, 2013 10:31:13 AM (12 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r45150 r45159 2409 2409 cr_server.head_spu->dispatch_table.WindowVisibleRegion(pMI->spuWindow, cRects, pRects); 2410 2410 2411 if (pMI->pvOutputRedirectInstance)2412 {2413 /* @todo the code assumes that RTRECT == four GLInts. */2414 cr_server.outputRedirect.CRORVisibleRegion(pMI->pvOutputRedirectInstance,2415 cRects, pRects);2416 }2417 2418 2411 pMI->fRootVrOn = cr_server.fRootVrOn; 2419 2412 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c
r45148 r45159 87 87 if (mural->pvOutputRedirectInstance) 88 88 { 89 uint32_t cRects; 90 const RTRECT *pRects; 91 92 int rc = CrVrScrCompositorEntryRegionsGet(&mural->Compositor, &mural->CEntry, &cRects, NULL, &pRects); 93 if (!RT_SUCCESS(rc)) 94 { 95 crWarning("CrVrScrCompositorEntryRegionsGet failed, rc %d", rc); 96 return; 97 } 98 89 99 cr_server.outputRedirect.CRORGeometry(mural->pvOutputRedirectInstance, 90 100 mural->hX, mural->hY, -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c
r45148 r45159 130 130 /* do visible rects only ig they differ from the default */ 131 131 cr_server.head_spu->dispatch_table.WindowVisibleRegion(mural->spuWindow, cRects, pRects); 132 133 if (mural->pvOutputRedirectInstance)134 {135 /* @todo the code assumes that RTRECT == four GLInts. */136 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance,137 cRects, pRects);138 }139 132 } 140 133 } … … 558 551 if (mural->pvOutputRedirectInstance) 559 552 { 553 if (mural->fRootVrOn) 554 { 555 rc = CrVrScrCompositorEntryRegionsGet(&mural->Compositor, &mural->CEntry, &cRects, NULL, &pRects); 556 if (!RT_SUCCESS(rc)) 557 { 558 crWarning("CrVrScrCompositorEntryRegionsGet failed, rc %d", rc); 559 return; 560 } 561 } 560 562 /* @todo the code assumes that RTRECT == four GLInts. */ 561 563 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance, 562 cRects, (RTRECT *)pRects);564 cRects, pRects); 563 565 } 564 566 … … 648 650 { 649 651 cr_server.head_spu->dispatch_table.WindowVisibleRegion(mural->spuWindow, cRects, pRects); 650 651 if (mural->pvOutputRedirectInstance)652 {653 /* @todo the code assumes that RTRECT == four GLInts. */654 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance,655 cRects, pRects);656 }657 652 } 658 653 else … … 727 722 if (fRegionsChanged) 728 723 { 724 const RTRECT * pRealRects; 725 uint32_t cRealRects; 726 729 727 if (mural->fRootVrOn) 730 728 { … … 744 742 } 745 743 746 rc = CrVrScrCompositorEntryRegionsGet(&mural->RootVrCompositor, &mural->RootVrCEntry, &cRe cts, NULL, (const RTRECT **)&pRects);744 rc = CrVrScrCompositorEntryRegionsGet(&mural->RootVrCompositor, &mural->RootVrCEntry, &cRealRects, NULL, &pRealRects); 747 745 if (!RT_SUCCESS(rc)) 748 746 { … … 753 751 else 754 752 { 755 rc = CrVrScrCompositorEntryRegionsGet(&mural->Compositor, &mural->CEntry, &cRe cts, NULL, (const RTRECT **)&pRects);753 rc = CrVrScrCompositorEntryRegionsGet(&mural->Compositor, &mural->CEntry, &cRealRects, NULL, &pRealRects); 756 754 if (!RT_SUCCESS(rc)) 757 755 { … … 761 759 } 762 760 763 cr_server.head_spu->dispatch_table.WindowVisibleRegion(mural->spuWindow, cRe cts, pRects);761 cr_server.head_spu->dispatch_table.WindowVisibleRegion(mural->spuWindow, cRealRects, pRealRects); 764 762 765 763 if (mural->pvOutputRedirectInstance) 766 764 { 765 if (mural->fRootVrOn) 766 { 767 rc = CrVrScrCompositorEntryRegionsGet(&mural->Compositor, &mural->CEntry, &cRealRects, NULL, &pRealRects); 768 if (!RT_SUCCESS(rc)) 769 { 770 crWarning("CrVrScrCompositorEntryRegionsGet failed, rc %d", rc); 771 return; 772 } 773 } 767 774 /* @todo the code assumes that RTRECT == four GLInts. */ 768 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance, 769 cRects, (RTRECT *)pRects); 775 cr_server.outputRedirect.CRORVisibleRegion(mural->pvOutputRedirectInstance, cRealRects, pRealRects); 770 776 } 771 777 }
Note:
See TracChangeset
for help on using the changeset viewer.