mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
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:
parent
f52ab4cc22
commit
25da42a650
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue