Changeset 44766 in vbox for trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp
- Timestamp:
- Feb 20, 2013 3:43:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp
r44740 r44766 1416 1416 { 1417 1417 memset(pCompositor, 0, sizeof (*pCompositor)); 1418 VBoxVrCompositorInit(&pCompositor->Compositor, NULL); 1419 pCompositor->StretchX = 1.0; 1420 pCompositor->StretchY = 1.0; 1421 return VINF_SUCCESS; 1418 int rc = RTCritSectInit(&pCompositor->CritSect); 1419 if (RT_SUCCESS(rc)) 1420 { 1421 VBoxVrCompositorInit(&pCompositor->Compositor, NULL); 1422 pCompositor->StretchX = 1.0; 1423 pCompositor->StretchY = 1.0; 1424 return VINF_SUCCESS; 1425 } 1426 else 1427 { 1428 crWarning("RTCritSectInit failed rc %d", rc); 1429 } 1430 return rc; 1422 1431 } 1423 1432 … … 1429 1438 if (pCompositor->paSrcRects) 1430 1439 RTMemFree(pCompositor->paSrcRects); 1440 1441 RTCritSectDelete(&pCompositor->CritSect); 1431 1442 } 1432 1443
Note:
See TracChangeset
for help on using the changeset viewer.