diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 13:19:00 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-07 13:19:00 -0700 |
commit | dd87c43a44871e6cf7c3328120c50447bd69c26c (patch) | |
tree | feb1c68a5148c835899d8c284e2bb76a20e36364 | |
parent | e6b5cf342e8a66869d25b68d5a63f3d3600b8aad (diff) |
don't dereference pt after realloc - fixes valgrind error
-rw-r--r-- | src/mesa/pipe/softpipe/sp_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_texture.c b/src/mesa/pipe/softpipe/sp_texture.c index e8cdd67435..2288c343bf 100644 --- a/src/mesa/pipe/softpipe/sp_texture.c +++ b/src/mesa/pipe/softpipe/sp_texture.c @@ -386,7 +386,7 @@ softpipe_texture_create(struct pipe_context *pipe, struct pipe_texture **pt) if (spt->buffer) { pipe->winsys->buffer_data(pipe->winsys, spt->buffer, - spt->pitch * (*pt)->cpp * + spt->pitch * spt->base.cpp * spt->total_height, NULL, PIPE_BUFFER_USAGE_PIXEL); } |