summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/softpipe/sp_texture.c2
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);
}