summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-04-25 15:21:00 -0600
committerBrian Paul <[email protected]>2008-04-25 15:24:07 -0600
commit4c50969334844bc9aa622176c3ebcbc733394f78 (patch)
tree8aeed83352ab217b0d535fa620b24c87b8345e48 /src/mesa/state_tracker
parent9b44f5a7550d8ede2eda763770e927df4c15cc8e (diff)
gallium: added null ptr check
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c2
1 files changed, 1 insertions, 1 deletions
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.