VirtualBox

Changeset 95589 in vbox


Ignore:
Timestamp:
Jul 11, 2022 2:16:05 PM (2 years ago)
Author:
vboxsync
Message:

Devices/Graphics: cleanup. bugref:10242

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r95232 r95589  
    15441544    }
    15451545
    1546     Assert(pSurfaceSrc->enmD3DResType != VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE); /// @todo
    1547     Assert(pSurfaceDest->enmD3DResType != VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE); /// @todo
     1546    AssertReturn(pSurfaceSrc->enmD3DResType != VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE, VERR_NOT_IMPLEMENTED); /// @todo
     1547    AssertReturn(pSurfaceDest->enmD3DResType != VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE, VERR_NOT_IMPLEMENTED); /// @todo
     1548
     1549    /* Surface copy only makes sense between surfaces with identical layout. */
     1550    AssertReturn(pSurfaceSrc->cbBlock == pSurfaceDest->cbBlock, VERR_INVALID_PARAMETER);
     1551    AssertReturn(pSurfaceSrc->cxBlock == pSurfaceDest->cxBlock, VERR_INVALID_PARAMETER);
     1552    AssertReturn(pSurfaceSrc->cyBlock == pSurfaceDest->cyBlock, VERR_INVALID_PARAMETER);
    15481553
    15491554    if (   pSurfaceSrc->u.pSurface
     
    17591764
    17601765            Assert(!clipBox.srcz && !clipBox.z);
    1761             Assert(pSurfaceSrc->cbBlock == pSurfaceDest->cbBlock);
    1762             Assert(pSurfaceSrc->cxBlock == pSurfaceDest->cxBlock);
    1763             Assert(pSurfaceSrc->cyBlock == pSurfaceDest->cyBlock);
    17641766
    17651767            uint32_t cBlocksX = (clipBox.w + pSurfaceSrc->cxBlock - 1) / pSurfaceSrc->cxBlock;
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