Changeset 32184 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Sep 1, 2010 4:37:20 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r32148 r32184 4106 4106 { 4107 4107 PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[pData->SrcSubResourceIndex]; 4108 PVBOXWDDMDISP_SCREEN pPrimaryScreen = &pDevice->aScreens[pDevice->iPrimaryScreen]; 4109 Assert(pPrimaryScreen->pDevice9If); 4108 4110 IDirect3DSurface9 *pSecondaryRt; 4109 4111 IDirect3DSurface9 *pDataRt = (IDirect3DSurface9*)pAlloc->pSecondaryOpenedD3DIf; 4110 4112 Assert(pDataRt); 4111 4113 Assert(pAlloc->enmD3DIfType == VBOXDISP_D3DIFTYPE_SURFACE); 4112 hr = pScreen->pDevice9If->GetRenderTarget(0, &pSecondaryRt); 4113 Assert(hr == S_OK); 4114 if (hr == S_OK) 4115 { 4116 hr = pScreen->pDevice9If->StretchRect(pDataRt, 4117 NULL, 4118 pSecondaryRt, 4119 NULL, 4120 D3DTEXF_NONE); 4121 pSecondaryRt->Release(); 4114 // do we actually need to do flush here ? 4115 // hr = pDevice->pAdapter->D3D.pfnVBoxWineExD3DDev9Flush((IDirect3DDevice9Ex*)pPrimaryScreen->pDevice9If); 4116 // Assert(hr == S_OK); 4117 // if (hr == S_OK) 4118 { 4119 hr = pScreen->pDevice9If->GetRenderTarget(0, &pSecondaryRt); 4120 Assert(hr == S_OK); 4121 if (hr == S_OK) 4122 { 4123 hr = pScreen->pDevice9If->StretchRect(pDataRt, 4124 NULL, 4125 pSecondaryRt, 4126 NULL, 4127 D3DTEXF_NONE); 4128 pSecondaryRt->Release(); 4129 } 4122 4130 } 4123 4131 }
Note:
See TracChangeset
for help on using the changeset viewer.