mesa: Handle failure to create a transfer.

This commit is contained in:
José Fonseca 2009-04-20 14:53:08 +01:00
parent d017749b3e
commit 01397a66c7
1 changed files with 2 additions and 1 deletions

View File

@ -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. */