VirtualBox

Ignore:
Timestamp:
Oct 29, 2009 5:33:12 PM (15 years ago)
Author:
vboxsync
Message:

2d accel: fix snapshot restore

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h

    r24162 r24171  
    10601060
    10611061    int vhwaSaveSurface(struct SSMHANDLE * pSSM, VBoxVHWASurfaceBase *pSurf, uint32_t surfCaps);
    1062     int vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version);
     1062    int vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t cBackBuffers, uint32_t u32Version);
    10631063    int vhwaSaveOverlayData(struct SSMHANDLE * pSSM, VBoxVHWASurfaceBase *pSurf, bool bVisible);
    10641064    int vhwaLoadOverlayData(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp

    r24170 r24171  
    36733673}
    36743674
    3675 int VBoxGLWidget::vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version)
     3675int VBoxGLWidget::vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t cBackBuffers, uint32_t u32Version)
    36763676{
    36773677    Q_UNUSED(u32Version);
     
    37343734        {
    37353735            Assert(0);
     3736        }
     3737
     3738        if(cBackBuffers)
     3739        {
     3740            pCreateSurf->SurfInfo.cBackBuffers = cBackBuffers;
     3741            pCreateSurf->SurfInfo.surfCaps |= VBOXVHWA_SCAPS_COMPLEX;
    37363742        }
    37373743
     
    40084014        for(uint32_t i = 0; i < u32; ++i)
    40094015        {
    4010             rc = vhwaLoadSurface(pCmdList, pSSM, u32Version);  AssertRC(rc);
     4016            rc = vhwaLoadSurface(pCmdList, pSSM, 0, u32Version);  AssertRC(rc);
    40114017            if(RT_FAILURE(rc))
    40124018                break;
     
    40244030                    for(uint32_t j = 0; j < cSurfs; ++j)
    40254031                    {
    4026                         rc = vhwaLoadSurface(pCmdList, pSSM, u32Version);  AssertRC(rc);
     4032                        rc = vhwaLoadSurface(pCmdList, pSSM, cSurfs - 1, u32Version);  AssertRC(rc);
    40274033                        if(RT_FAILURE(rc))
    40284034                            break;
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