summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-10 08:36:04 -0600
committerBrian Paul <brianp@vmware.com>2009-04-10 08:36:19 -0600
commit23a911b4a66914883ece70c1e621dfc082661a28 (patch)
tree2e0df291e4645136eae9f11a172e4c236b2a9ddf /src/mesa/drivers
parentded05d32d5f948770ece088ea0ed6363c0055a4c (diff)
i965: added null const_buffer pointer check in update_constant_buffer()
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_curbe.c2
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 08b602a5ab..94bf2c0d67 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);