wined3d: Don't dirtify too many shader constants.
commitc82da7d97506b638ded678abb93160e4bd6de2dd
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 28 Jun 2009 16:33:22 +0000 (28 18:33 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 1 Jul 2009 11:14:34 +0000 (1 13:14 +0200)
tree6dbce08f35e8217459e97a4e76620734c6dbe259
parentbbfe59bc93738e95208d215800d716e4b3594794
wined3d: Don't dirtify too many shader constants.

If we have start = 4, count = 3, the highest dirty constant is the one with index 6. start + count gives 7,
so it already includes the zero-based array correction. Don't add an additional 1.

Additionally to the inefficiency of looking at one extra constant, this causes problems if the driver
rejects loading 257 constants on the initial load. In this case no constant is loaded if
GL_EXT_gpu_program_parameters is used.
dlls/wined3d/arb_program_shader.c