summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_stencil.c
diff options
context:
space:
mode:
authorBrian <brian@yutani.localnet.net>2007-03-15 11:11:41 -0600
committerBrian <brian@yutani.localnet.net>2007-03-15 11:11:41 -0600
commit038e981cacdc6f32588442666cde8a8fc16cfdfc (patch)
tree71844bf1a11ecfcc4d58e097766f5f3980aa3093 /src/mesa/swrast/s_stencil.c
parent90563d39cbdae552f498285125381c8c8ccb2f83 (diff)
add some rb->Data null ptr checks (bug 7205)
Diffstat (limited to 'src/mesa/swrast/s_stencil.c')
-rw-r--r--src/mesa/swrast/s_stencil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c
index a8aa1d4b6d..43475c0e81 100644
--- a/src/mesa/swrast/s_stencil.c
+++ b/src/mesa/swrast/s_stencil.c
@@ -1154,7 +1154,7 @@ _swrast_clear_stencil_buffer( GLcontext *ctx, struct gl_renderbuffer *rb )
const GLuint stencilMax = (1 << stencilBits) - 1;
GLint x, y, width, height;
- if (!rb || mask == 0)
+ if (!rb || mask == 0 || !rb->Data)
return;
ASSERT(rb->DataType == GL_UNSIGNED_BYTE ||