Module: wine
Branch: master
Commit: 5f8c62e45d8771c815d57eb3364cd0a2cbfc0f98
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f8c62e45d8771c815d57eb33…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Wed Jan 7 09:00:55 2009 +0100
wined3d: Remove a redundant parameter to drawPrimitive().
startIdx should be the first index to draw, either from the vertex
array or the index array, depending on if the draw is indexed or
not. Having both at the same time wouldn't make sense.
---
dlls/wined3d/device.c | 14 ++++++------
dlls/wined3d/drawprim.c | 42 +++++++++++++++++----------------------
dlls/wined3d/wined3d_private.h | 12 +---------
3 files changed, 27 insertions(+), 41 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=5f8c62e45d8771c815d57…
Module: wine
Branch: master
Commit: 691894d1abafdf2698ac12332bce6446af7e6efb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=691894d1abafdf2698ac12332…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Wed Jan 7 09:00:55 2009 +0100
wined3d: Also apply the last sampler state.
In practice we don't implement WINED3DSAMP_DMAPOFFSET anyway, so this
is unlikely to make much of a difference.
---
dlls/wined3d/stateblock.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 4203073..e1f1dd8 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -1025,7 +1025,8 @@ should really perform a delta so that only the changes get updated*/
UINT sampler = j < MAX_FRAGMENT_SAMPLERS ? j : WINED3DVERTEXTEXTURESAMPLER0 + j - MAX_FRAGMENT_SAMPLERS;
IWineD3DDevice_SetTexture(pDevice, sampler, This->textures[j]);
- for(i = 1; i < WINED3D_HIGHEST_SAMPLER_STATE; i++) {
+ for (i = 1; i <= WINED3D_HIGHEST_SAMPLER_STATE; ++i)
+ {
IWineD3DDevice_SetSamplerState(pDevice, sampler, i, This->samplerState[j][i]);
}
}