Stefan Dösinger : wined3d: The ARB loop unroller' s iteration is unsigned.
Module: wine Branch: master Commit: 728dd55f62aed6d3cf34fbff60f2f3e7bfc409d2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=728dd55f62aed6d3cf34fbff60... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jul 28 15:41:16 2010 +0200 wined3d: The ARB loop unroller's iteration is unsigned. --- dlls/wined3d/arb_program_shader.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 0617fe3..665c02b 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -5244,7 +5244,8 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio if(control_frame->outer_loop) { - int iteration, aL = 0; + unsigned int iteration; + int aL = 0; struct list copy; /* Turn off recording before playback */ @@ -5276,11 +5277,11 @@ static void shader_arb_handle_instruction(const struct wined3d_shader_instructio if(ins->handler_idx == WINED3DSIH_ENDLOOP) { priv->aL = aL; - shader_addline(buffer, "#Iteration %d, aL=%d\n", iteration, aL); + shader_addline(buffer, "#Iteration %u, aL=%d\n", iteration, aL); } else { - shader_addline(buffer, "#Iteration %d\n", iteration); + shader_addline(buffer, "#Iteration %u\n", iteration); } LIST_FOR_EACH_ENTRY(rec_ins, ©, struct recorded_instruction, entry)
participants (1)
-
Alexandre Julliard