wined3d: Correct an off-by-one error in constant dirtification.
commit9be8f36c2ec1dd3a1bb1d9b116ea11313da38e64
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 6 Jul 2008 16:51:26 +0000 (6 11:51 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 7 Jul 2008 10:33:41 +0000 (7 12:33 +0200)
treef7e62585436f54319b2f718772ed4e0ec1756d4c
parent5bd57c5992f719a457a6121f497f52c5277162a9
wined3d: Correct an off-by-one error in constant dirtification.

Constant numbers start at 0, and the loading loop has a for(i; i <
dirtyconsts; i++). This means that the highest dirty constant isn't
loaded correctly. Rather than replacing the < with <=, which would
make it impossible to have no dirty constant, add 1 to the dirty
constant counter.
dlls/wined3d/arb_program_shader.c
dlls/wined3d/device.c