summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/state_tracker/st_mipmap_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_mipmap_tree.c b/src/mesa/state_tracker/st_mipmap_tree.c
index 27bbf176087..faca148d805 100644
--- a/src/mesa/state_tracker/st_mipmap_tree.c
+++ b/src/mesa/state_tracker/st_mipmap_tree.c
@@ -89,6 +89,7 @@ st_miptree_create(struct pipe_context *pipe,
/* note: it's OK to pass 'pitch' as 'width' here: */
mt->region = pipe->region_alloc(pipe, mt->cpp, mt->pitch,
mt->total_height, flags);
+ mt->pitch = mt->region->pitch; /*XXX NEW */
}
if (!mt->region) {