Module: wine Branch: refs/heads/master Commit: 5f5969b3c5bd237277b8f2f1eaa4ddacce5fb63b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5f5969b3c5bd237277b8f2f1...
Author: Ivan Gyurdiev ivg2@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=5f5969b3c5bd237277b8...