u_staging: use PIPE_TEXTURE_RECT
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 18 Aug 2010 20:57:02 +0000 (22:57 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 20 Aug 2010 10:04:02 +0000 (12:04 +0200)
src/gallium/auxiliary/util/u_staging.c

index 607c31f5ee779130dcdab45a39e7323745ccd52c..e2dc696d200b74adcc23e8d550d4572842654020 100644 (file)
@@ -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;