mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
u_staging: use PIPE_TEXTURE_RECT
This commit is contained in:
parent
cbe3672279
commit
4a9bfb24eb
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ util_staging_resource_template(struct pipe_resource *pt, unsigned width, unsigne
|
|||
{
|
||||
memset(template, 0, sizeof(struct pipe_resource));
|
||||
if(pt->target != PIPE_BUFFER && depth <= 1)
|
||||
template->target = PIPE_TEXTURE_2D;
|
||||
template->target = PIPE_TEXTURE_RECT;
|
||||
else
|
||||
template->target = pt->target;
|
||||
template->format = pt->format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue