OSDN Git Service

i965: added null const_buffer pointer check in update_constant_buffer()
authorBrian Paul <brianp@vmware.com>
Fri, 10 Apr 2009 14:36:04 +0000 (08:36 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Apr 2009 14:36:19 +0000 (08:36 -0600)
src/mesa/drivers/dri/i965/brw_curbe.c

index 08b602a..94bf2c0 100644 (file)
@@ -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);