From: Roland Scheidegger Date: Tue, 3 Aug 2004 13:03:33 +0000 (+0000) Subject: fix incorrect overflow detection when emitting R200_SS_MAT_1_SHININESS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bd0a627fd97fea7c0a87625a71f6f587d14d941;p=mesa.git fix incorrect overflow detection when emitting R200_SS_MAT_1_SHININESS --- diff --git a/src/mesa/drivers/dri/r200/r200_sanity.c b/src/mesa/drivers/dri/r200/r200_sanity.c index 2de262ede33..58d83ad95a1 100644 --- a/src/mesa/drivers/dri/r200/r200_sanity.c +++ b/src/mesa/drivers/dri/r200/r200_sanity.c @@ -817,7 +817,7 @@ static int radeon_emit_scalars2( fprintf(stderr, "emit scalars2, start %d stride %d nr %d (end %d)\n", start, stride, sz, start + stride * sz); - if (start + stride * sz > 257) { + if (start + stride * sz > 258) { fprintf(stderr, "emit scalars OVERFLOW %d/%d/%d\n", start, stride, sz); return -1; }