Changeset 33616 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Oct 29, 2010 3:01:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r33608 r33616 3463 3463 VBOXDISPCRHGSMI_SCOPE_SET_DEV(pDevice); 3464 3464 HRESULT hr = S_OK; 3465 IDirect3DVertexBuffer9 *pStreamData;3466 UINT cbOffset;3467 UINT cbStride;3468 3465 3469 3466 Assert(pData->Stream < RT_ELEMENTS(pDevice->aStreamSourceUm)); … … 3472 3469 pStrSrcUm->cbStride = pData->Stride; 3473 3470 3474 hr = pDevice->pDevice9If->GetStreamSource(pData->Stream, &pStreamData, &cbOffset, &cbStride); 3475 Assert(hr == S_OK); 3476 if (hr==S_OK && pStreamData) 3471 if (pDevice->aStreamSource[pData->Stream]) 3477 3472 { 3478 3473 hr = pDevice->pDevice9If->SetStreamSource(pData->Stream, NULL, 0, 0); 3479 pStreamData->Release(); 3474 --pDevice->cStreamSources; 3475 Assert(pDevice->cStreamSources < UINT32_MAX/2); 3476 pDevice->aStreamSource[pData->Stream] = NULL; 3480 3477 } 3481 3478
Note:
See TracChangeset
for help on using the changeset viewer.