About: d3dx9: Store transform matrix per-sprite.

Joris Huizer joris_huizer at yahoo.com
Tue Oct 19 08:03:47 CDT 2010


Hello,

In this patch ID3DXSpriteImpl_Flush is adapted; the new loop being like:

    int i, count, start;
    /*  ... */
    for(start=0;start<This->sprite_count;start+=count,count=0) {
        i=start;
        while(i<This->sprite_count &&
              (count==0 || This->sprites[i].texture==This->sprites[i-1].texture)) {
         /* filling in array */
      }
      /* rest of the outer loop, using array and count */
    }

It seems count is used uninitialised here on the first iteration ?

HTH,
Joris


      



More information about the wine-devel mailing list