Module: wine Branch: master Commit: 108fcb691c3116aefa5e1bcc2d19e0290085d610 URL: http://source.winehq.org/git/wine.git/?a=commit;h=108fcb691c3116aefa5e1bcc2d...
Author: Stefan Dösinger stefan@codeweavers.com Date: Tue Nov 27 00:00:31 2012 +0100
ddraw: Make the index buffer write only.
---
dlls/ddraw/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index dd7d3ee..6cc25ba 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -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)) {