VirtualBox

Ticket #22011: svga3d_d3d11_clear_flag-7.0.14.patch

File svga3d_d3d11_clear_flag-7.0.14.patch, 870 bytes (added by JHRobotics, 13 months ago)

Patch for 7.0.14

  • src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp

    old new  
    79027902        int rc = dxDefineDepthStencilView(pThisCC, pDXContext, depthStencilViewId, pEntry);
    79037903        AssertRCReturn(rc, rc);
    79047904    }
    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);
    79067912    return VINF_SUCCESS;
    79077913}
    79087914

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette