diff options
author | Nian Wu <nian.wu@intel.com> | 2007-03-16 17:00:24 +0800 |
---|---|---|
committer | Nian Wu <nian.wu@intel.com> | 2007-03-16 17:00:24 +0800 |
commit | a02870f4f61a66560b3eb75f98a7fe57ebcb6ed6 (patch) | |
tree | 8f1ecfc19e60d583969fa1e34c24e86e877ef2f6 /src/mesa/swrast/s_accum.c | |
parent | d63eef4b86af02aea5b26f90de9cf3d46aee398c (diff) | |
parent | 95764262a7f2dfda761a0dbd87c3d9b12df0d534 (diff) |
Merge git://proxy01.pd.intel.com:9419/git/mesa/mesa into crestline
Diffstat (limited to 'src/mesa/swrast/s_accum.c')
-rw-r--r-- | src/mesa/swrast/s_accum.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_accum.c b/src/mesa/swrast/s_accum.c index 69e9404c55..f53e7f52c5 100644 --- 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); |