Module: wine Branch: master Commit: 99d88c15ea092a29542661205a856792dcdb44eb URL: http://source.winehq.org/git/wine.git/?a=commit;h=99d88c15ea092a29542661205a...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Mar 20 19:16:52 2009 +0100
wined3d: Fix the drawRectPatch vertex count.
DrawPrimitive now accepts the number of vertices, not the number of primitives. This code was forgotten in the patch that changed this. We're drawing triangles, so we are drawing num_primitives * 3 vertices.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 48952df..bf38d26 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6456,7 +6456,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_DrawRectPatch(IWineD3DDevice *iface, UI This->currentPatch = patch; old_primitive_type = This->stateBlock->gl_primitive_type; This->stateBlock->gl_primitive_type = GL_TRIANGLES; - IWineD3DDevice_DrawPrimitiveStrided(iface, patch->numSegs[0] * patch->numSegs[1] * 2, &patch->strided); + IWineD3DDevice_DrawPrimitiveStrided(iface, patch->numSegs[0] * patch->numSegs[1] * 2 * 3, &patch->strided); This->stateBlock->gl_primitive_type = old_primitive_type; This->currentPatch = NULL;