Hi,

clipping of lines at the edges of the viewing volume doesn't seem to
work. The problem occurs both with RADEON_TCL_FORCE_DISABLE and with
LIBGL_ALWAYS_INDIRECT. If I use a glOrtho (-1.0, 1.0, -1.0, 1.0, -1.0,
1.0) projection this works:

    glBegin(GL_LINES);
    glColor3f(1.0, 0.0, 0.0);
    glVertex2f(0.0, 0.0);
    glVertex2f(0.5, 0.5);
    glEnd();

but this does not:

    glBegin(GL_LINES);
    glColor3f(1.0, 0.0, 0.0);
    glVertex2f(0.0, 0.0);
    glVertex2f(1.5, 0.5);
    glEnd();

With Radeon HW TCL both work. I've tried to dig into the mesa code. In
the debugger I could see where the clipping And and Or masks are set,
correctly as it seems (clip_test2 called from run_vertex_stage). But I
couldn't find the place where the actual clipping is supposed to occur
:(

The same with GL_LINE_STRIP. I also tried more vertices between glBegin
and glEnd. As soon  as one vertex is outside the viewing volume all
lines disappear, even if they are in separate glBegin-End pairs.

I'm using the latest trunk with Mesa 5.0 merged in.

Regards,
   Felix

               __\|/__    ___     ___     ___
__Tsch��_______\_6 6_/___/__ \___/__ \___/___\___You can do anything,___
_____Felix_______\�/\ \_____\ \_____\ \______U___just not everything____
  [EMAIL PROTECTED]    >o<__/   \___/   \___/        at the same time!


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to