projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r300: Further reduced the radeon_span.c diff.
[mesa.git]
/
src
/
mesa
/
swrast
/
s_accum.c
diff --git
a/src/mesa/swrast/s_accum.c
b/src/mesa/swrast/s_accum.c
index 69e9404c55cc217b9cc44b2c4e3e895596daaabd..f53e7f52c5e919f242368f304163c1ac7dc9209e 100644
(file)
--- a/
src/mesa/swrast/s_accum.c
+++ b/
src/mesa/swrast/s_accum.c
@@
-136,7
+136,9
@@
_swrast_clear_accum_buffer( GLcontext *ctx, struct gl_renderbuffer *rb )
return;
}
- assert(rb);
+ if (!rb || !rb->Data)
+ return;
+
assert(rb->_BaseFormat == GL_RGBA);
/* add other types in future? */
assert(rb->DataType == GL_SHORT || rb->DataType == GL_UNSIGNED_SHORT);