Ivan Gyurdiev : wined3d: Remove constant type field in stateblock.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 6 05:15:56 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 5f5969b3c5bd237277b8f2f1eaa4ddacce5fb63b
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5f5969b3c5bd237277b8f2f1eaa4ddacce5fb63b

Author: Ivan Gyurdiev <ivg2 at cornell.edu>
Date:   Tue Jun  6 02:46:59 2006 -0400

wined3d: Remove constant type field in stateblock.

It is wrong to maintain a mapping from a constant index to a type
field, because different constant types do not share an index -
boolean constant 0 is supposed to co-exist with floating point
constant 0, not replace it. Drawprim and other code using the type
array to decide whether to look up a constant in bools, floats, or
ints is wrong - you can't make that decision based on the index.

---

 dlls/wined3d/device.c            |  397 +++++++++++++++++++-------------------
 dlls/wined3d/drawprim.c          |   15 +
 dlls/wined3d/stateblock.c        |  106 ++++++----
 dlls/wined3d/wined3d_private.h   |   17 +-
 include/wine/wined3d_interface.h |   12 -
 5 files changed, 274 insertions(+), 273 deletions(-)

Diff:   http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=5f5969b3c5bd237277b8f2f1eaa4ddacce5fb63b



More information about the wine-cvs mailing list