mirror of
https://github.com/reactos/wine.git
synced 2025-02-02 18:25:19 +00:00
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.
This commit is contained in:
parent
014c4bfc70
commit
99d88c15ea
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user