Merge remote branch 'origin/master' into nv50-compiler
[mesa.git] / src / gallium / drivers / nv50 / nv50_miptree.c
index 12b5ad106caaf4136574e1fdd0a73c5d72533552..dd0e8fd41b1b4a238853bc1ab804770397106602 100644 (file)
@@ -238,7 +238,8 @@ nv50_miptree_from_handle(struct pipe_screen *pscreen,
        unsigned stride;
 
        /* Only supports 2D, non-mipmapped textures for the moment */
-       if (template->target != PIPE_TEXTURE_2D ||
+       if ((template->target != PIPE_TEXTURE_2D &&
+             template->target != PIPE_TEXTURE_RECT) ||
            template->last_level != 0 ||
            template->depth0 != 1)
                return NULL;