diff options
Diffstat (limited to 'src/mesa/softpipe/state_tracker')
-rw-r--r-- | src/mesa/softpipe/state_tracker/st_atom_clip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/softpipe/state_tracker/st_atom_clip.c b/src/mesa/softpipe/state_tracker/st_atom_clip.c index 1a0d2c4053..710d6ffc84 100644 --- a/src/mesa/softpipe/state_tracker/st_atom_clip.c +++ b/src/mesa/softpipe/state_tracker/st_atom_clip.c @@ -45,7 +45,7 @@ static void update_clip( struct st_context *st ) memset(&clip, 0, sizeof(clip)); - for (i = 0; i < 6; i++) { + for (i = 0; i < SP_MAX_CLIP_PLANES; i++) { if (st->ctx->Transform.ClipPlanesEnabled & (1 << i)) { memcpy(clip.ucp[clip.nr], st->ctx->Transform._ClipUserPlane[i], |