From: Brian Paul Date: Fri, 25 Apr 2008 21:21:00 +0000 (-0600) Subject: gallium: added null ptr check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c50969334844bc9aa622176c3ebcbc733394f78;p=mesa.git gallium: added null ptr check --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 9fd9fd70ea9..005bb2e54db 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -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.