check span.y >=0 (bug 4842)

This commit is contained in:
Brian Paul
2005-10-21 18:35:35 +00:00
parent e516654dec
commit 7d3b26022b
+4 -1
View File
@@ -1181,7 +1181,10 @@ static void NAME(GLcontext *ctx, const SWvertex *v0,
} /* span.end > 1 */
/* This is where we actually generate fragments */
if (span.end > 0) {
/* XXX the test for span.y > 0 _shouldn't_ be needed but
* it fixes a problem on 64-bit Opterons (bug 4842).
*/
if (span.end > 0 && span.y >= 0) {
RENDER_SPAN( span );
}