From: Brian Paul Date: Fri, 10 Apr 2009 14:36:04 +0000 (-0600) Subject: i965: added null const_buffer pointer check in update_constant_buffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23a911b4a66914883ece70c1e621dfc082661a28;p=mesa.git i965: added null const_buffer pointer check in update_constant_buffer() --- 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);