Changeset 24171 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 29, 2009 5:33:12 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r24162 r24171 1060 1060 1061 1061 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); 1063 1063 int vhwaSaveOverlayData(struct SSMHANDLE * pSSM, VBoxVHWASurfaceBase *pSurf, bool bVisible); 1064 1064 int vhwaLoadOverlayData(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFBOverlay.cpp
r24170 r24171 3673 3673 } 3674 3674 3675 int VBoxGLWidget::vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t u32Version)3675 int VBoxGLWidget::vhwaLoadSurface(VHWACommandList * pCmdList, struct SSMHANDLE * pSSM, uint32_t cBackBuffers, uint32_t u32Version) 3676 3676 { 3677 3677 Q_UNUSED(u32Version); … … 3734 3734 { 3735 3735 Assert(0); 3736 } 3737 3738 if(cBackBuffers) 3739 { 3740 pCreateSurf->SurfInfo.cBackBuffers = cBackBuffers; 3741 pCreateSurf->SurfInfo.surfCaps |= VBOXVHWA_SCAPS_COMPLEX; 3736 3742 } 3737 3743 … … 4008 4014 for(uint32_t i = 0; i < u32; ++i) 4009 4015 { 4010 rc = vhwaLoadSurface(pCmdList, pSSM, u32Version); AssertRC(rc);4016 rc = vhwaLoadSurface(pCmdList, pSSM, 0, u32Version); AssertRC(rc); 4011 4017 if(RT_FAILURE(rc)) 4012 4018 break; … … 4024 4030 for(uint32_t j = 0; j < cSurfs; ++j) 4025 4031 { 4026 rc = vhwaLoadSurface(pCmdList, pSSM, u32Version); AssertRC(rc);4032 rc = vhwaLoadSurface(pCmdList, pSSM, cSurfs - 1, u32Version); AssertRC(rc); 4027 4033 if(RT_FAILURE(rc)) 4028 4034 break;
Note:
See TracChangeset
for help on using the changeset viewer.