summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-10-21 18:35:35 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-10-21 18:35:35 +0000
commit7d3b26022b75608e2c9d83c14157b89ef39cbd43 (patch)
tree5d8de62077cae5db30689b84273a3ce901966cf6 /src/mesa
parente516654dec111d8d781013ee537d5b37042fa933 (diff)
check span.y >=0 (bug 4842)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_tritemp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h
index d32a86bb88..93454346bd 100644
--- a/src/mesa/swrast/s_tritemp.h
+++ b/src/mesa/swrast/s_tritemp.h
@@ -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 );
}