Hello!

I've found two bus in the recent CVS version of Mesa:
in texture.c at line 978:
      /* XXX this mix of floating point and integer math probably isn't
       * too efficient.
       */
      rgba[0] = (w00 * t00[0] + w10 * t10[0] + w01 * t01[0] + w11 * t11[0]
+ 0.002);
      rgba[1] = (w00 * t00[1] + w10 * t10[1] + w01 * t01[1] + w11 * t11[1]
+ 0.002);
      rgba[2] = (w00 * t00[2] + w10 * t10[2] + w01 * t01[2] + w11 * t11[2]
+ 0.002);
      rgba[3] = (w00 * t00[3] + w10 * t10[3] + w01 * t01[3] + w11 * t11[3]
+ 0.001);

should be:
      rgba[0] = (w00 * t00[0] + w10 * t10[0] + w01 * t01[0] + w11 *
t11[0]) >> 8;
      rgba[1] = (w00 * t00[1] + w10 * t10[1] + w01 * t01[1] + w11 *
t11[1]) >> 8;
      rgba[2] = (w00 * t00[2] + w10 * t10[2] + w01 * t01[2] + w11 *
t11[2]) >> 8;
      rgba[3] = (w00 * t00[3] + w10 * t10[3] + w01 * t01[3] + w11 *
t11[3]) >> 8;

Since floats were eliminated recently.

And in extensions.c at line 88:(in gl_extensions_add):
a line:

     t->notify = (void*)notify;

should inserted.

Would anyone check-in those changes please,

Miklos.




_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to