projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6b5cf3
)
don't dereference pt after realloc - fixes valgrind error
author
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 20:19:00 +0000
(13:19 -0700)
committer
Brian
<brian.paul@tungstengraphics.com>
Fri, 7 Dec 2007 20:19:00 +0000
(13:19 -0700)
src/mesa/pipe/softpipe/sp_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_texture.c
b/src/mesa/pipe/softpipe/sp_texture.c
index e8cdd67435bb44afe33e8850b04e5e1aafb5857c..2288c343bf1caf273e19977fb54579dec6b09b74 100644
(file)
--- 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);
}