VirtualBox

Ignore:
Timestamp:
Feb 20, 2013 3:43:52 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: host 3d window repaint impl for Win host; enable offscreen rendering for Win; 3D window repaint generics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/util/vreg.cpp

    r44740 r44766  
    14161416{
    14171417    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;
    14221431}
    14231432
     
    14291438    if (pCompositor->paSrcRects)
    14301439        RTMemFree(pCompositor->paSrcRects);
     1440
     1441    RTCritSectDelete(&pCompositor->CritSect);
    14311442}
    14321443
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette