Module: wine
Branch: master
Commit: 57cfd613a59022c48ca4ca45996a85115c2d4c8a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=57cfd613a59022c48ca4ca459…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Thu Apr 1 11:34:46 2010 +0200
wined3d: Explicitly set the state handler to NULL for states with a representative.
We should never call the handler for states that have a rep.
---
dlls/wined3d/arb_program_shader.c | 216 +++++++++++-----------
dlls/wined3d/ati_fragment_shader.c | 196 ++++++++++----------
dlls/wined3d/nvidia_texture_shader.c | 168 +++++++++---------
dlls/wined3d/state.c | 334 +++++++++++++++++-----------------
4 files changed, 457 insertions(+), 457 deletions(-)
Diff: http://source.winehq.org/git/wine.git/?a=commitdiff;h=57cfd613a59022c48ca4c…
Module: wine
Branch: master
Commit: f70193b9156b2c2f2cb9912d29b56fe4dc2a2d13
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f70193b9156b2c2f2cb9912d2…
Author: Henri Verbeet <hverbeet(a)codeweavers.com>
Date: Thu Apr 1 11:34:45 2010 +0200
wined3d: Use the rep instead of the apply function to determine if a state is used.
---
dlls/wined3d/state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 04de86f..3602b83 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -5723,7 +5723,7 @@ HRESULT compile_state_table(struct StateEntry *StateTable, APPLYSTATEFUNC **dev_
* applying later lines, but do not record anything in the state
* table
*/
- if(!cur[i].content.apply) continue;
+ if (!cur[i].content.representative) continue;
handlers = num_handlers(multistate_funcs[cur[i].state]);
multistate_funcs[cur[i].state][handlers] = cur[i].content.apply;