[PATCH 2/3] ddraw: Make the index buffer write only
Stefan Dösinger
stefan at codeweavers.com
Mon Nov 26 17:00:31 CST 2012
---
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))
{
--
1.7.8.6
More information about the wine-patches
mailing list