Changeset 32545 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
- Timestamp:
- Sep 16, 2010 10:00:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r32501 r32545 1917 1917 IDirect3DDevice9 *pDevice9If = NULL; 1918 1918 HWND hOldWnd = pSwapchain->hWnd; 1919 //#define VBOXDISP_NEWWND_ON_SWAPCHAINUPDATE 1919 1920 #ifndef VBOXDISP_NEWWND_ON_SWAPCHAINUPDATE 1920 1921 if (!hOldWnd) … … 4759 4760 Assert(hr == S_OK); 4760 4761 if (hr == S_OK) 4762 { 4763 if(pResource->Flags.Primary) 4764 { 4765 for (UINT i = 0; i < pResource->SurfCount; ++i) 4766 { 4767 vboxWddmSwapchainFindCreate(pDevice, &pRc->aAllocations[i]); 4768 } 4769 Assert(bIssueCreateResource); 4770 } 4761 4771 continue; 4772 } 4762 4773 4763 4774 /* fail branch */ … … 5632 5643 { 5633 5644 #ifndef VBOXWDDM_WITH_VISIBLE_FB 5634 if (pSrcSwapchain && vboxWddmSwapchainGetFb(pSrcSwapchain)->pAlloc != pSrcAlloc 5645 if (pSrcSwapchain 5646 && pSrcSwapchain->pRenderTargetFbCopy 5647 && vboxWddmSwapchainGetFb(pSrcSwapchain)->pAlloc != pSrcAlloc 5635 5648 && vboxWddmSwapchainNumRTs(pSrcSwapchain) > 1) /* work-around wine backbuffer */ 5636 5649 { … … 5671 5684 pSrcSurfIf = pSrcSwapchain->pRenderTargetFbCopy; 5672 5685 Assert(pSrcSurfIf); 5673 hr = p Device9If->GetFrontBufferData(0,pSrcSurfIf);5686 hr = pSrcSwapchain->pSwapChainIf->GetFrontBufferData(pSrcSurfIf); 5674 5687 Assert(hr == S_OK); 5675 5688 if (hr == S_OK)
Note:
See TracChangeset
for help on using the changeset viewer.