From: José Fonseca Date: Mon, 20 Apr 2009 13:53:08 +0000 (+0100) Subject: mesa: Handle failure to create a transfer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01397a66c77f8ebfe78b90ace59c095194a290cf;p=mesa.git mesa: Handle failure to create a transfer. --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 94e340b7e94..c3e990e0775 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. */