diff options
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_clip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c index 878d7798802..7b879c4cd50 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_clip.c +++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c @@ -168,9 +168,9 @@ static void interp( const struct clip_stage *clip, int k; t_nopersp = t; for (k = 0; k < 2; k++) - if (in->data[pos_attr][k] != out->data[pos_attr][k]) { - t_nopersp = (dst->data[pos_attr][k] - out->data[pos_attr][k]) / - (in->data[pos_attr][k] - out->data[pos_attr][k]); + if (in->clip[k] != out->clip[k]) { + t_nopersp = (dst->clip[k] - out->clip[k]) / + (in->clip[k] - out->clip[k]); break; } } |