VirtualBox

Ignore:
Timestamp:
Oct 29, 2010 3:01:55 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: another stream source tracking fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r33608 r33616  
    34633463    VBOXDISPCRHGSMI_SCOPE_SET_DEV(pDevice);
    34643464    HRESULT hr = S_OK;
    3465     IDirect3DVertexBuffer9 *pStreamData;
    3466     UINT cbOffset;
    3467     UINT cbStride;
    34683465
    34693466    Assert(pData->Stream < RT_ELEMENTS(pDevice->aStreamSourceUm));
     
    34723469    pStrSrcUm->cbStride = pData->Stride;
    34733470
    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])
    34773472    {
    34783473        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;
    34803477    }
    34813478   
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette