Changeset 46606 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Jun 17, 2013 6:59:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r46593 r46606 2446 2446 VBOXVDBG_DUMP_DRAWPRIM_ENTER(pDevice); 2447 2447 2448 if (!pDevice->cStreamSources) 2449 { 2450 if (pDevice->aStreamSourceUm[0].pvBuffer) 2451 { 2448 if (pDevice->cStreamSourcesUm) 2449 { 2452 2450 #ifdef DEBUG 2453 for (UINT i = 1; i < RT_ELEMENTS(pDevice->aStreamSourceUm); ++i) 2454 { 2455 Assert(!pDevice->aStreamSourceUm[i].pvBuffer); 2456 } 2451 uint32_t cStreams = 0; 2452 for (UINT i = 0; i < RT_ELEMENTS(pDevice->aStreamSourceUm); ++i) 2453 { 2454 if(pDevice->aStreamSourceUm[i].pvBuffer) 2455 { 2456 ++cStreams; 2457 } 2458 } 2459 2460 Assert(cStreams); 2461 Assert(cStreams == pDevice->cStreamSourcesUm); 2457 2462 #endif 2458 hr = pDevice9If->DrawPrimitiveUP(pData->PrimitiveType, 2459 pData->PrimitiveCount, 2460 ((uint8_t*)pDevice->aStreamSourceUm[0].pvBuffer) + pData->VStart * pDevice->aStreamSourceUm[0].cbStride, 2461 pDevice->aStreamSourceUm[0].cbStride); 2462 Assert(hr == S_OK); 2463 2464 // vboxVDbgMpPrintF((pDevice, __FUNCTION__": DrawPrimitiveUP\n")); 2463 if (pDevice->cStreamSourcesUm == 1) 2464 { 2465 for (UINT i = 0; i < RT_ELEMENTS(pDevice->aStreamSourceUm); ++i) 2466 { 2467 if(pDevice->aStreamSourceUm[i].pvBuffer) 2468 { 2469 hr = pDevice9If->DrawPrimitiveUP(pData->PrimitiveType, 2470 pData->PrimitiveCount, 2471 ((uint8_t*)pDevice->aStreamSourceUm[i].pvBuffer) + pData->VStart * pDevice->aStreamSourceUm[i].cbStride, 2472 pDevice->aStreamSourceUm[i].cbStride); 2473 Assert(hr == S_OK); 2474 break; 2475 } 2476 } 2465 2477 } 2466 2478 else 2467 2479 { 2468 2480 /* todo: impl */ 2469 Assert(0);2481 WARN(("multiple user stream sources (%d) not implemented!!", pDevice->cStreamSourcesUm)); 2470 2482 } 2471 2483 } … … 2474 2486 2475 2487 #ifdef DEBUG 2488 Assert(!pDevice->cStreamSourcesUm); 2476 2489 for (UINT i = 0; i < RT_ELEMENTS(pDevice->aStreamSourceUm); ++i) 2477 2490 {
Note:
See TracChangeset
for help on using the changeset viewer.