VirtualBox

Changeset 95106 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
May 25, 2022 3:21:17 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151585
Message:

Devices/Graphics: do not hardcode bindflags: bugref:9830

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp

    r95102 r95106  
    26182618    bd.ByteWidth = pMipLevel->cbSurface;
    26192619    bd.Usage     = D3D11_USAGE_DEFAULT;
    2620     bd.BindFlags = D3D11_BIND_VERTEX_BUFFER
    2621                  | D3D11_BIND_INDEX_BUFFER;
     2620    bd.BindFlags = dxBindFlags(pSurface->f.surfaceFlags);
    26222621
    26232622    HRESULT hr = pDevice->pDevice->CreateBuffer(&bd, pInitialData, &pBackendSurface->u.pBuffer);
     
    26632662    bd.ByteWidth           = pSurface->paMipmapLevels[0].cbSurface;
    26642663    bd.Usage               = D3D11_USAGE_DEFAULT;
    2665     bd.BindFlags           = dxBindFlags(pSurface->f.surfaceFlags); // D3D11_BIND_VERTEX_BUFFER | D3D11_BIND_STREAM_OUTPUT;
     2664    bd.BindFlags           = dxBindFlags(pSurface->f.surfaceFlags);
    26662665    bd.CPUAccessFlags      = 0; /// @todo ? D3D11_CPU_ACCESS_READ;
    26672666    bd.MiscFlags           = 0;
Note: See TracChangeset for help on using the changeset viewer.

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