- Timestamp:
- Apr 6, 2020 10:53:11 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r83579 r83596 2528 2528 AssertRCReturn(rc, rc); 2529 2529 } 2530 else 2531 { 2532 hr = pSurface->u.pTexture->SetAutoGenFilterType((D3DTEXTUREFILTERTYPE)filter); 2533 AssertMsg(hr == D3D_OK, ("SetAutoGenFilterType failed with %x\n", hr)); 2534 } 2530 2531 AssertReturn( pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_TEXTURE 2532 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_CUBE_TEXTURE 2533 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE, 2534 VERR_INVALID_PARAMETER); 2535 2536 hr = pSurface->u.pTexture->SetAutoGenFilterType((D3DTEXTUREFILTERTYPE)filter); 2537 AssertMsg(hr == D3D_OK, ("SetAutoGenFilterType failed with %x\n", hr)); 2535 2538 2536 2539 /* Generate the mip maps. */ … … 4915 4918 { 4916 4919 /* The buffer object is not an vertex one. Recreate the D3D resource. */ 4917 Assert (pVertexSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_INDEX_BUFFER);4920 AssertReturn(pVertexSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_INDEX_BUFFER, VERR_INVALID_PARAMETER); 4918 4921 D3D_RELEASE(pVertexSurface->u.pIndexBuffer); 4919 4922 pVertexSurface->enmD3DResType = VMSVGA3D_D3DRESTYPE_NONE; … … 4970 4973 { 4971 4974 /* The buffer object is not an index one. Must recreate the D3D resource. */ 4972 Assert (pIndexSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_VERTEX_BUFFER);4975 AssertReturn(pIndexSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_VERTEX_BUFFER, VERR_INVALID_PARAMETER); 4973 4976 D3D_RELEASE(pIndexSurface->u.pVertexBuffer); 4974 4977 pIndexSurface->enmD3DResType = VMSVGA3D_D3DRESTYPE_NONE;
Note:
See TracChangeset
for help on using the changeset viewer.