ddraw: Make the index buffer write only.

This commit is contained in:
Stefan Dösinger 2012-11-27 00:00:31 +01:00 committed by Alexandre Julliard
parent 4b95487bdd
commit 108fcb691c
1 changed files with 1 additions and 1 deletions

View File

@ -4063,7 +4063,7 @@ static HRESULT d3d_device7_DrawIndexedPrimitiveVB(IDirect3DDevice7 *iface,
TRACE("Growing index buffer to %u bytes\n", size);
hr = wined3d_buffer_create_ib(This->wined3d_device, size, WINED3DUSAGE_DYNAMIC /* Usage */,
hr = wined3d_buffer_create_ib(This->wined3d_device, size, WINED3DUSAGE_DYNAMIC | WINED3DUSAGE_WRITEONLY,
WINED3D_POOL_DEFAULT, NULL, &ddraw_null_wined3d_parent_ops, &buffer);
if (FAILED(hr))
{