diff options
author | José Fonseca <[email protected]> | 2009-04-20 14:53:08 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-04-20 16:44:36 +0100 |
commit | 01397a66c77f8ebfe78b90ace59c095194a290cf (patch) | |
tree | d409600c527926adaa4a7ef5690a93a78d2d8657 | |
parent | d017749b3ea07f2cc43bb5e8316b83471d1e13ec (diff) |
mesa: Handle failure to create a transfer.
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
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 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. */ |