From 23a911b4a66914883ece70c1e621dfc082661a28 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Apr 2009 08:36:04 -0600 Subject: i965: added null const_buffer pointer check in update_constant_buffer() --- src/mesa/drivers/dri/i965/brw_curbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c index 08b602a5abe..94bf2c0d67a 100644 --- a/src/mesa/drivers/dri/i965/brw_curbe.c +++ b/src/mesa/drivers/dri/i965/brw_curbe.c @@ -343,7 +343,7 @@ update_constant_buffer(struct brw_context *brw, const int size = params->NumParameters * 4 * sizeof(GLfloat); /* copy Mesa program constants into the buffer */ - if (size > 0) { + if (const_buffer && size > 0) { GLubyte *map; assert(const_buffer); -- cgit v1.2.3