summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-04-20 14:53:08 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-04-20 16:44:36 +0100
commit01397a66c77f8ebfe78b90ace59c095194a290cf (patch)
treed409600c527926adaa4a7ef5690a93a78d2d8657 /src/mesa
parentd017749b3ea07f2cc43bb5e8316b83471d1e13ec (diff)
mesa: Handle failure to create a transfer.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_cb_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 94e340b7e9..c3e990e077 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -682,7 +682,8 @@ st_TexImage(GLcontext * ctx,
PIPE_TRANSFER_WRITE, 0, 0,
stImage->base.Width,
stImage->base.Height);
- dstRowStride = stImage->transfer->stride;
+ if(stImage->transfer)
+ dstRowStride = stImage->transfer->stride;
}
else {
/* Allocate regular memory and store the image there temporarily. */