Ivan Gyurdiev : wined3d: Remove constant type field in stateblock.
julliard at wine.codeweavers.com
Tue Jun 6 05:15:56 CDT 2006
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(-)
More information about the wine-cvs