Changeset 32699 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
- Timestamp:
- Sep 22, 2010 3:07:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r32697 r32699 1824 1824 IDirect3DSurface9 *pD3D9Surf; 1825 1825 UINT iRt = vboxWddmSwapchainIdxBb2Rt(pSwapchain, iBb); 1826 Assert(iRt < pSwapchain->cRTs); 1826 1827 PVBOXWDDMDISP_RENDERTGT pRt = &pSwapchain->aRTs[iRt]; 1827 1828 HRESULT hr = pSwapchain->pSwapChainIf->GetBackBuffer(iBb, D3DBACKBUFFER_TYPE_MONO, &pD3D9Surf); … … 1839 1840 if (pD3D9OldSurf && pD3D9OldSurf != pD3D9Surf) 1840 1841 { 1841 Assert(0); 1842 hr = pDevice->pDevice9If->StretchRect(pD3D9OldSurf, NULL, pD3D9Surf, NULL, D3DTEXF_NONE); 1843 Assert(hr == S_OK); 1842 VOID *pvSwapchain = NULL; 1843 HRESULT tmpHr = pD3D9OldSurf->GetContainer(IID_IDirect3DSwapChain9, &pvSwapchain); 1844 if (tmpHr == S_OK) 1845 { 1846 Assert(pvSwapchain); 1847 ((IDirect3DSwapChain9 *)pvSwapchain)->Release(); 1848 } 1849 else 1850 { 1851 Assert(!pvSwapchain); 1852 } 1853 if (pvSwapchain != pSwapchain->pSwapChainIf) 1854 { 1855 Assert(0); 1856 hr = pDevice->pDevice9If->StretchRect(pD3D9OldSurf, NULL, pD3D9Surf, NULL, D3DTEXF_NONE); 1857 Assert(hr == S_OK); 1858 } 1844 1859 } 1845 1860 } … … 4780 4795 } 4781 4796 Assert(pAllocation->D3DWidth >= pSurf->Width); 4782 #ifdef DEBUG_misha4783 /* break to test */4784 Assert(pAllocation->D3DWidth == pSurf->Width);4785 #endif4786 4797 } 4787 4798 }
Note:
See TracChangeset
for help on using the changeset viewer.