Changeset 30585 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Jul 2, 2010 5:48:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r30582 r30585 3506 3506 PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[pData->SubResourceIndex]; 3507 3507 Assert(pRc->RcDesc.fFlags.RenderTarget); 3508 Assert(p Rc->aAllocations[pData->SubResourceIndex].enmD3DIfType == VBOXDISP_D3DIFTYPE_SURFACE);3508 Assert(pAlloc->enmD3DIfType == VBOXDISP_D3DIFTYPE_SURFACE); 3509 3509 Assert(pAlloc->hAllocation); 3510 3510 D3DDDICB_SETDISPLAYMODE DdiDm = {0}; 3511 3511 DdiDm.hPrimaryAllocation = pAlloc->hAllocation; 3512 3512 // DdiDm.PrivateDriverFormatAttribute = 0; 3513 hr = pDevice->RtCallbacks.pfnSetDisplayModeCb(pDevice->hDevice, &DdiDm); 3513 #if 0 3514 IDirect3DSurface9 *pD3DIfSurf = (IDirect3DSurface9*)pAlloc->pD3DIf; 3515 hr = pDevice->pDevice9If->SetRenderTarget(0, pD3DIfSurf); 3514 3516 Assert(hr == S_OK); 3517 if (hr == S_OK) 3518 #endif 3519 { 3520 hr = pDevice->RtCallbacks.pfnSetDisplayModeCb(pDevice->hDevice, &DdiDm); 3521 Assert(hr == S_OK); 3522 } 3515 3523 3516 3524 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
Note:
See TracChangeset
for help on using the changeset viewer.