Ticket #22011: svga3d_d3d11_clear_flag-7.0.14.patch
File svga3d_d3d11_clear_flag-7.0.14.patch, 870 bytes (added by , 13 months ago) |
---|
-
src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp
old new 7902 7902 int rc = dxDefineDepthStencilView(pThisCC, pDXContext, depthStencilViewId, pEntry); 7903 7903 AssertRCReturn(rc, rc); 7904 7904 } 7905 pDevice->pImmediateContext->ClearDepthStencilView(pDXView->u.pDepthStencilView, flags, depth, stencil); 7905 7906 /* Flag values: https://learn.microsoft.com/en-us/windows/win32/api/d3d11/ne-d3d11-d3d11_clear_flag */ 7907 UINT dxflags = 0; 7908 if(flags & SVGA3D_CLEAR_DEPTH) dxflags |= D3D11_CLEAR_DEPTH; 7909 if(flags & SVGA3D_CLEAR_STENCIL) dxflags |= D3D11_CLEAR_STENCIL; 7910 7911 pDevice->pImmediateContext->ClearDepthStencilView(pDXView->u.pDepthStencilView, dxflags, depth, stencil); 7906 7912 return VINF_SUCCESS; 7907 7913 } 7908 7914