wined3d: Mark constants dirty in the EXT_gpu_program_parameters path.

This commit is contained in:
Stefan Dösinger 2008-03-07 03:15:39 +01:00 committed by Alexandre Julliard
parent 8a3ef776f4
commit 20e57ea607
1 changed files with 4 additions and 1 deletions

View File

@ -100,8 +100,11 @@ static unsigned int shader_arb_load_constantsF(IWineD3DBaseShaderImpl* This, Win
if(!dirty_consts[i]) continue;
/* Find the next block of dirty constants */
dirty_consts[i] = 0;
j = i;
for(i++; (i < max_constants) && dirty_consts[i]; i++);
for(i++; (i < max_constants) && dirty_consts[i]; i++) {
dirty_consts[i] = 0;
}
GL_EXTCALL(glProgramEnvParameters4fvEXT(target_type, j, i - j, constants + (j * 4)));
}