[haiku-commits] Re: haiku: hrev44916 - src/add-ons/opengl/swpipe

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 28 Nov 2012 11:12:11 +0100

2012/11/28  <kallisti5@xxxxxxxxxxx>:
>
> +       // Make all contexts a known value
> +       context_id i;
> +       for (i = 0; i < CONTEXT_MAX; i++)
> +               fContext[i] = NULL;
> +

...

>         uint32 i;
> -       for (i = 0; i < CONTEXT_MAX; i++) {
> -               // TODO: Delete each context
> -               //if (fContext[i])
> -               //      hsp_delete_context(i + 1);
> -       }
> +       for (i = 0; i < CONTEXT_MAX; i++)
> +               DestroyContext(i);

The loop variables could be declared in the for(). Please choose the
right type context_id or uint32.

Bye,
Jérôme

Other related posts: