gallium: added null ptr check
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Apr 2008 21:21:00 +0000 (15:21 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 25 Apr 2008 21:24:07 +0000 (15:24 -0600)
src/mesa/state_tracker/st_cb_texture.c

index 9fd9fd70ea99b23800d9cfdfd9ee3776de953e97..005bb2e54db62c01568ac6580b49a0779bc326df 100644 (file)
@@ -1373,7 +1373,7 @@ copy_image_data_to_texture(struct st_context *st,
 
       pipe_texture_release(&stImage->pt);
    }
-   else {
+   else if (stImage->base.Data) {
       assert(stImage->base.Data != NULL);
 
       /* More straightforward upload.