projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e516654
)
check span.y >=0 (bug 4842)
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 21 Oct 2005 18:35:35 +0000
(18:35 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 21 Oct 2005 18:35:35 +0000
(18:35 +0000)
src/mesa/swrast/s_tritemp.h
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_tritemp.h
b/src/mesa/swrast/s_tritemp.h
index d32a86bb88f532e4cbe2291ed1d5907f615f3494..93454346bd5f792daf11140e6b65a08da16787bc 100644
(file)
--- 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 );
}