Changeset 46801 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp
- Timestamp:
- Jun 26, 2013 1:01:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp
r46757 r46801 621 621 static int vboxVrListSubstNoJoin(PVBOXVR_LIST pList, uint32_t cRects, const RTRECT * aRects, bool *pfChanged) 622 622 { 623 *pfChanged = false; 623 if (pfChanged) 624 *pfChanged = false; 624 625 625 626 if (VBoxVrListIsEmpty(pList)) … … 637 638 } 638 639 639 *pfChanged = Data.fChanged; 640 if (pfChanged) 641 *pfChanged = Data.fChanged; 642 640 643 return VINF_SUCCESS; 641 644 } … … 910 913 #endif 911 914 912 int rc = vboxVrListSubstNoJoin(pList, cRects, aRects, pfChanged); 915 bool fChanged = false; 916 917 int rc = vboxVrListSubstNoJoin(pList, cRects, aRects, &fChanged); 913 918 if (!RT_SUCCESS(rc)) 914 919 { … … 917 922 } 918 923 919 if ( !*pfChanged)924 if (fChanged) 920 925 goto done; 921 926 … … 927 932 RTMemFree(pRects); 928 933 #endif 934 935 if (pfChanged) 936 *pfChanged = fChanged; 937 929 938 return rc; 930 939 } … … 1198 1207 { 1199 1208 bool fOthersChanged = false, fCurChanged = false, fEntryChanged = false, fEntryWasInList = false, fEntryReplaced = false; 1200 PVBOXVR_COMPOSITOR_ENTRY pCur ;1209 PVBOXVR_COMPOSITOR_ENTRY pCur, pNext; 1201 1210 int rc = VINF_SUCCESS; 1202 1211 … … 1230 1239 Assert(!VBoxVrListIsEmpty(&pEntry->Vr)); 1231 1240 } 1232 1233 RTListForEach(&pCompositor->List, pCur, VBOXVR_COMPOSITOR_ENTRY, Node) 1241 else 1242 { 1243 fEntryChanged = true; 1244 } 1245 1246 RTListForEachSafe(&pCompositor->List, pCur, pNext, VBOXVR_COMPOSITOR_ENTRY, Node) 1234 1247 { 1235 1248 Assert(!VBoxVrListIsEmpty(&pCur->Vr)); … … 1621 1634 uint32_t cRects = VBoxVrListRectsCount(&pCEntry->Vr); 1622 1635 Assert(cRects); 1623 Assert(cRects >= pData->cRects);1636 Assert(cRects <= pData->cRects); 1624 1637 int rc = VBoxVrListRectsGet(&pCEntry->Vr, cRects, pEntry->paDstRects); 1625 1638 AssertRC(rc); … … 1729 1742 { 1730 1743 uint32_t fChangedFlags = 0; 1731 int rc = VBoxVrCompositorEntryRegionsAdd(&pCompositor->Compositor, &pEntry->Ce, cRegions, paRegions, &fChangedFlags);1744 int rc = VBoxVrCompositorEntryRegionsAdd(&pCompositor->Compositor, pEntry ? &pEntry->Ce : NULL, cRegions, paRegions, &fChangedFlags); 1732 1745 if (!RT_SUCCESS(rc)) 1733 1746 {
Note:
See TracChangeset
for help on using the changeset viewer.