22 lines
636 B
Diff
22 lines
636 B
Diff
commit 038e981cacdc6f32588442666cde8a8fc16cfdfc
|
|
Author: Brian <brian@yutani.localnet.net>
|
|
Date: Thu Mar 15 11:11:41 2007 -0600
|
|
|
|
add some rb->Data null ptr checks (bug 7205)
|
|
|
|
diff --git a/src/mesa/swrast/s_accum.c b/src/mesa/swrast/s_accum.c
|
|
index 69e9404..f53e7f5 100644
|
|
--- a/src/mesa/swrast/s_accum.c
|
|
+++ b/src/mesa/swrast/s_accum.c
|
|
@@ -136,7 +136,9 @@ _swrast_clear_accum_buffer( GLcontext *c
|
|
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);
|