From a5cc6155d425b1a94e576e0c87140557051b7505 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 May 2001 17:55:54 +0000 Subject: [PATCH] added check for zero-length spans, avoids potential problems later --- src/mesa/swrast/s_aatritemp.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mesa/swrast/s_aatritemp.h b/src/mesa/swrast/s_aatritemp.h index 4b921650976..df680932922 100644 --- a/src/mesa/swrast/s_aatritemp.h +++ b/src/mesa/swrast/s_aatritemp.h @@ -1,4 +1,4 @@ -/* $Id: s_aatritemp.h,v 1.11 2001/05/07 16:01:59 brianp Exp $ */ +/* $Id: s_aatritemp.h,v 1.12 2001/05/10 17:55:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -322,6 +322,9 @@ } n = (GLuint) ix - (GLuint) startX; + if (n == 0) + continue; + #ifdef DO_MULTITEX # ifdef DO_SPEC _mesa_write_multitexture_span(ctx, n, startX, iy, z, fog, @@ -440,6 +443,9 @@ } n = (GLuint) startX - (GLuint) ix; + if (n == 0) + continue; + left = ix + 1; #ifdef DO_MULTITEX { -- 2.30.2