"Marcelo E. Magallon" wrote:
> 
> >> Brian Paul <[EMAIL PROTECTED]> writes:
> 
>  > to a simple integer divide.
> 
>  That's the point.  You are comparing it with a truncated result.  I'm
>  comparing it with x/255 computed in floating point and rounded up.
> 
>  >       int d0 = i / 255;
> 
>  change that to (int)((float)i / 255. + 0.5)

Ah, OK.  I must have missed that point in your original mesage.  In any
case, both macros seem to satisfy the Glean and OpenGL conformance tests
for blending.

-Brian

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to