Holger Waechtler wrote:
> 
> Hi Brian, hi everybody else,
> 
> Mesa reports wrong depth values in picking mode. Try the pickdepth demo
> from the Red Book examples to see.
> 
> The problem is in feedback.c (gl_select_triangle, gl_select_line and
> gl_select_points):
> 
>       gl_update_hitflag( ctx, VB->Win.data[v0][3] / DEPTH_SCALE );
>       gl_update_hitflag( ctx, VB->Win.data[v1][3] / DEPTH_SCALE );
>       gl_update_hitflag( ctx, VB->Win.data[v2][3] / DEPTH_SCALE );
> 
> should be:
> 
>       gl_update_hitflag( ctx, VB->Win.data[v0][2] / DEPTH_SCALE );
>       gl_update_hitflag( ctx, VB->Win.data[v1][2] / DEPTH_SCALE );
>       gl_update_hitflag( ctx, VB->Win.data[v2][2] / DEPTH_SCALE );
> 
> Complete patch is attached. Could you check it in, Brian ?

Done.  Thanks, Holger.  I meant to investigate this bug but didn't
have the time yet.

-Brian


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

Reply via email to