VirtualBox

Ignore:
Timestamp:
Apr 25, 2018 10:45:46 AM (7 years ago)
Author:
vboxsync
Message:

WDDM: VBoxDispD3D: D3D backend creation cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r71934 r72010  
    460460#endif
    461461
    462 static BOOLEAN vboxWddmDalCheckNotifyRemove(PVBOXWDDMDISP_DEVICE pDevice, PVBOXWDDMDISP_ALLOCATION pAlloc)
     462BOOLEAN vboxWddmDalCheckNotifyRemove(PVBOXWDDMDISP_DEVICE pDevice, PVBOXWDDMDISP_ALLOCATION pAlloc)
    463463{
    464464    if (pAlloc->DirtyAllocListEntry.pNext)
     
    551551}
    552552
    553 static VOID vboxWddmDalCheckAddOnDraw(PVBOXWDDMDISP_DEVICE pDevice)
     553VOID vboxWddmDalCheckAddOnDraw(PVBOXWDDMDISP_DEVICE pDevice)
    554554{
    555555    vboxWddmDalCheckAddRTs(pDevice);
     
    57975797        if (pDevice->pDevice9If)
    57985798        {
    5799             if (pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9Term)
     5799            if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_CROGL)
    58005800                pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9Term((IDirect3DDevice9Ex *)pDevice->pDevice9If);
    58015801        }
     
    65956595    if (SUCCEEDED(hr))
    65966596    {
    6597 
    65986597        hr = vboxDispAdapterInit(pOpenData, pAdapterInfo, &pAdapter);
    65996598        if (SUCCEEDED(hr))
     
    66056604
    66066605                /* Try enable the 3D. */
    6607                 hr = VBoxDispD3DGlobalOpen(&pAdapter->D3D, &pAdapter->Formats);
     6606                hr = VBoxDispD3DGlobalOpen(&pAdapter->D3D, &pAdapter->Formats, &pAdapter->AdapterInfo);
    66086607                if (hr == S_OK)
    66096608                {
     
    66116610
    66126611                    /* Flag indicating that the adapter instance is running in 3D mode. */
    6613                     pAdapter->f3D = (pAdapter->D3D.pD3D9If != NULL);
     6612                    pAdapter->f3D = true;
    66146613                }
    66156614                else
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