gallium: in softpipe_get_tex_surface() use the pitch specified in the softpipe_texture object.

Fixes a pitch/width mix-up.
This commit is contained in:
Brian Paul 2008-06-23 11:27:44 -06:00
parent f52ab4cc22
commit 25da42a650

View file

@ -198,7 +198,7 @@ softpipe_get_tex_surface(struct pipe_screen *screen,
ps->cpp = pt->cpp;
ps->width = pt->width[level];
ps->height = pt->height[level];
ps->pitch = ps->width;
ps->pitch = spt->pitch[level];
ps->offset = spt->level_offset[level];
ps->usage = usage;