- Timestamp:
- Apr 8, 2020 12:41:52 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137041
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-internal.h
r83579 r83620 518 518 union 519 519 { 520 IDirect3DSurface9 *pSurface;521 520 IDirect3DTexture9 *pTexture; 522 521 IDirect3DCubeTexture9 *pCubeTexture; -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r83596 r83620 4070 4070 { 4071 4071 Assert(pRenderTarget->idAssociatedContext == cid); 4072 AssertReturn(pRenderTarget->enmD3DResType == VMSVGA3D_D3DRESTYPE_SURFACE, VERR_INVALID_PARAMETER); 4072 4073 hr = pContext->pDevice->SetDepthStencilSurface(pRenderTarget->u.pSurface); 4073 4074 AssertMsgReturn(hr == D3D_OK, ("SetDepthStencilSurface failed with %x\n", hr), VERR_INTERNAL_ERROR); … … 4145 4146 4146 4147 Assert(pRenderTarget->idAssociatedContext == cid); 4147 Assert(pRenderTarget->enmD3DResType == VMSVGA3D_D3DRESTYPE_SURFACE); 4148 AssertMsgReturn(pRenderTarget->enmD3DResType == VMSVGA3D_D3DRESTYPE_SURFACE, 4149 ("Invalid render target %#x\n", pRenderTarget->enmD3DResType), 4150 VERR_INVALID_PARAMETER); 4148 4151 pSurface = pRenderTarget->u.pSurface; 4149 4152 } 4150 4153 4151 AssertReturn(p RenderTarget->u.pSurface, VERR_INVALID_PARAMETER);4154 AssertReturn(pSurface, VERR_INVALID_PARAMETER); 4152 4155 Assert(!pRenderTarget->fDirty); 4153 4156 … … 4357 4360 else 4358 4361 { 4359 Assert( pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_TEXTURE4360 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_CUBE_TEXTURE4361 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE);4362 4362 /* Must flush the other context's 3d pipeline to make sure all drawing is complete for the surface we're about to use. */ 4363 4363 vmsvga3dSurfaceFlush(pSurface); 4364 4364 } 4365 4366 AssertReturn( pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_TEXTURE 4367 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_CUBE_TEXTURE 4368 || pSurface->enmD3DResType == VMSVGA3D_D3DRESTYPE_VOLUME_TEXTURE, 4369 VERR_INVALID_PARAMETER); 4365 4370 4366 4371 #ifndef VBOX_VMSVGA3D_WITH_WINE_OPENGL
Note:
See TracChangeset
for help on using the changeset viewer.