Changeset 72010 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
- Timestamp:
- Apr 25, 2018 10:45:46 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r71934 r72010 460 460 #endif 461 461 462 staticBOOLEAN vboxWddmDalCheckNotifyRemove(PVBOXWDDMDISP_DEVICE pDevice, PVBOXWDDMDISP_ALLOCATION pAlloc)462 BOOLEAN vboxWddmDalCheckNotifyRemove(PVBOXWDDMDISP_DEVICE pDevice, PVBOXWDDMDISP_ALLOCATION pAlloc) 463 463 { 464 464 if (pAlloc->DirtyAllocListEntry.pNext) … … 551 551 } 552 552 553 staticVOID vboxWddmDalCheckAddOnDraw(PVBOXWDDMDISP_DEVICE pDevice)553 VOID vboxWddmDalCheckAddOnDraw(PVBOXWDDMDISP_DEVICE pDevice) 554 554 { 555 555 vboxWddmDalCheckAddRTs(pDevice); … … 5797 5797 if (pDevice->pDevice9If) 5798 5798 { 5799 if (pDevice->pAdapter-> D3D.D3D.pfnVBoxWineExD3DDev9Term)5799 if (pDevice->pAdapter->enmHwType == VBOXVIDEO_HWTYPE_CROGL) 5800 5800 pDevice->pAdapter->D3D.D3D.pfnVBoxWineExD3DDev9Term((IDirect3DDevice9Ex *)pDevice->pDevice9If); 5801 5801 } … … 6595 6595 if (SUCCEEDED(hr)) 6596 6596 { 6597 6598 6597 hr = vboxDispAdapterInit(pOpenData, pAdapterInfo, &pAdapter); 6599 6598 if (SUCCEEDED(hr)) … … 6605 6604 6606 6605 /* Try enable the 3D. */ 6607 hr = VBoxDispD3DGlobalOpen(&pAdapter->D3D, &pAdapter->Formats );6606 hr = VBoxDispD3DGlobalOpen(&pAdapter->D3D, &pAdapter->Formats, &pAdapter->AdapterInfo); 6608 6607 if (hr == S_OK) 6609 6608 { … … 6611 6610 6612 6611 /* Flag indicating that the adapter instance is running in 3D mode. */ 6613 pAdapter->f3D = (pAdapter->D3D.pD3D9If != NULL);6612 pAdapter->f3D = true; 6614 6613 } 6615 6614 else
Note:
See TracChangeset
for help on using the changeset viewer.