mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 15:00:36 +01:00
don't dereference pt after realloc - fixes valgrind error
This commit is contained in:
parent
1eb78225c4
commit
f36258d7e1
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue