diff options
author | Brian Paul <[email protected]> | 2009-04-10 08:36:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-04-10 08:36:19 -0600 |
commit | 23a911b4a66914883ece70c1e621dfc082661a28 (patch) | |
tree | 2e0df291e4645136eae9f11a172e4c236b2a9ddf /src | |
parent | ded05d32d5f948770ece088ea0ed6363c0055a4c (diff) |
i965: added null const_buffer pointer check in update_constant_buffer()
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_curbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |