Changeset 30566 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Jul 1, 2010 6:04:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r30563 r30566 1863 1863 static HRESULT APIENTRY vboxWddmDDevDrawIndexedPrimitive(HANDLE hDevice, CONST D3DDDIARG_DRAWINDEXEDPRIMITIVE* pData) 1864 1864 { 1865 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 1866 AssertBreakpoint(); 1867 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 1868 return E_FAIL; 1865 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 1866 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; 1867 Assert(pDevice); 1868 Assert(pDevice->pDevice9If); 1869 HRESULT hr = pDevice->pDevice9If->DrawIndexedPrimitive( 1870 pData->PrimitiveType, 1871 pData->BaseVertexIndex, 1872 pData->MinIndex, 1873 pData->NumVertices, 1874 pData->StartIndex, 1875 pData->PrimitiveCount); 1876 Assert(hr == S_OK); 1877 1878 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p), hr(0x%x)\n", hDevice, hr)); 1879 return hr; 1869 1880 } 1870 1881 … … 2645 2656 Assert(hr == S_OK); 2646 2657 } 2647 else if (pRc->RcDesc.fFlags.IndexBuffer) 2648 { 2658 else 2659 { 2660 Assert(pAlloc->LockInfo.cLocks < UINT32_MAX); 2661 } 2662 } 2663 else if (pRc->RcDesc.fFlags.IndexBuffer) 2664 { 2665 Assert(pData->SubResourceIndex < pRc->cAllocations); 2666 PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[pData->SubResourceIndex]; 2667 2668 --pAlloc->LockInfo.cLocks; 2669 Assert(pAlloc->LockInfo.cLocks < UINT32_MAX); 2670 if (!pAlloc->LockInfo.cLocks 2671 && (!pAlloc->LockInfo.fFlags.MightDrawFromLocked 2672 || (!pAlloc->LockInfo.fFlags.Discard && !pAlloc->LockInfo.fFlags.NoOverwrite))) 2673 { 2674 // Assert(!pAlloc->LockInfo.cLocks); 2649 2675 IDirect3DIndexBuffer9 *pD3D9IBuf = (IDirect3DIndexBuffer9*)pAlloc->pD3DIf; 2650 2676 Assert(pD3D9IBuf);
Note:
See TracChangeset
for help on using the changeset viewer.