projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7044d5
)
check if span length > 0 before calling _swrast_write_rgba_span()
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 4 Jan 2008 00:17:22 +0000
(17:17 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Sat, 5 Jan 2008 22:45:55 +0000
(15:45 -0700)
src/mesa/swrast/s_points.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_points.c
b/src/mesa/swrast/s_points.c
index d60e175baa0f5d4df075e1364b49a2feb64b29b2..350a0682d693ebadb12d7f90969a1e78d9287058 100644
(file)
--- a/
src/mesa/swrast/s_points.c
+++ b/
src/mesa/swrast/s_points.c
@@
-499,11
+499,13
@@
pixel_point(GLcontext *ctx, const SWvertex *vert)
if (span->end >= MAX_WIDTH ||
(swrast->_RasterMask & (BLEND_BIT | LOGIC_OP_BIT | MASKING_BIT)) ||
span->facing != swrast->PointLineFacing) {
- if (ciMode)
- _swrast_write_index_span(ctx, span);
- else
- _swrast_write_rgba_span(ctx, span);
- span->end = 0;
+ if (span->end > 0) {
+ if (ciMode)
+ _swrast_write_index_span(ctx, span);
+ else
+ _swrast_write_rgba_span(ctx, span);
+ span->end = 0;
+ }
}
count = span->end;